Thread: Coolreader
View Single Post
Old 03-17-2011, 05:40 PM   #65
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,840
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by MartinZ View Post
Hi there,

i tried Keys on my PB903 and have changed/completed the definitions of the (inofficial) SDK this way:
(bold for the keys really existing on PB903)
(italics for my own declarations)

KEY_BACK 0x1b
KEY_DELETE 0x08
KEY_OK 0x0a
KEY_UP 0x11
KEY_DOWN 0x12
KEY_LEFT 0x13
KEY_RIGHT 0x14
KEY_MINUS 0x15
KEY_PLUS 0x16
KEY_MENU 0x17
KEY_MUSIC 0x1e //(in fact that is the PB903's Power-Button however!)


KEY_POWER 0x01 //("0x01" does not exist on PB903, POWER-KEY is 0x1e)

KEY_PREV 0x18
KEY_NEXT 0x19

KEY_PREV2 0x1c //was named "KEY_PREV" in SDK but is wrong
KEY_NEXT2 0x1d
//was named "KEY_NEXT" in SDK but is wrong

KEY_ZOOMPLUS 0x07
KEY_ZOOMMINUS 0x06
KEY_HOME 0x1a



YOu can easily check these codes with my little app
rename attachment "hello_mar.bin" to "hello_mar.app" and copy to Pbook
please have mercy on somebody who does not really know what she is doing
I have modified the keydef.ini with your list above, and I have used Kacir's keymap.ini. However, something is wrong, as when I open coolreader I get question marks instead of button names. Any suggestions?
One thing I did with respect to your list above is that I added "=" everywhere, e.g. you wrote "KEY_BACK 0x1b", while I wrote "KEY_BACK=0x1b".
Many thanks!

EDIT: PLEASE IGNORE REQUEST, I've read the thread better, this seems to be expected at this stage.

Last edited by paola; 03-17-2011 at 06:01 PM.
paola is offline   Reply With Quote