View Single Post
Old 05-30-2010, 10:23 PM   #20
brainycat
PocketBook 302 FTW!
brainycat has a complete set of Star Wars action figures.brainycat has a complete set of Star Wars action figures.brainycat has a complete set of Star Wars action figures.brainycat has a complete set of Star Wars action figures.
 
brainycat's Avatar
 
Posts: 141
Karma: 398
Join Date: Oct 2009
Location: Seattle
Device: Pocketbook 302, upgraded from PRS-600
Quote:
Originally Posted by kacir View Post
poterm requires that you press OK buton to open the virtual keyboard for command input. PB302 has no OK button.
from poterm.cpp:
Code:
70                  case KEY_OK:
71                      OpenKeyboard(term->prompt(), kbuffer, KBUFFER_LEN, 0, keyboard_entry);
72                      term->setHeightNoKbd(iv_msgtop());
73                      term->redrawAll();
74                      break;
And from inkview.h:
Code:
173  #define KEY_BACK 0x1b
174  #define KEY_DELETE 0x08
175  #define KEY_OK 0x0a
176  #define KEY_UP 0x11
177  #define KEY_DOWN 0x12
178  #define KEY_LEFT 0x13
179  #define KEY_RIGHT 0x14
180  #define KEY_MINUS 0x15
181  #define KEY_PLUS 0x16
182  #define KEY_MENU 0x17
183  #define KEY_MUSIC 0x1e
184  #define KEY_POWER 0x01
185  #define KEY_PREV 0x18
186  #define KEY_NEXT 0x19
187  #define KEY_PREV2 0x1c
188  #define KEY_NEXT2 0x1d
189  
190  #define KEY_0 0x30
191  #define KEY_1 0x31
192  #define KEY_2 0x32
193  #define KEY_3 0x33
194  #define KEY_4 0x34
195  #define KEY_5 0x35
196  #define KEY_6 0x36
197  #define KEY_7 0x37
198  #define KEY_8 0x38
199  #define KEY_9 0x39
So if anyone knows what the KEY_* definitions are for the pb302, it is a trivial matter of replacing poterm.cpp:70 'KEY_OK' with 'KEY_(new key definition)' and recompiling.
brainycat is offline   Reply With Quote