View Single Post
Old 11-16-2012, 04:28 AM   #47
dsmid
Linux devotee
dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.dsmid ought to be getting tired of karma fortunes by now.
 
dsmid's Avatar
 
Posts: 598
Karma: 2069047
Join Date: Feb 2011
Device: Kindle 3, Kindle 4B, Kindle PW2
OK, I've implemented it as physkeyb improvement, download the new version here:

https://code.google.com/p/kindle-cs/...q=physkeyb_3.4

After installing delete file keyboard/keyboard-european.txt and replace keyboard/keyboard.txt with this (change the keys if you want):

Code:
enabledonstart=true
w=#f103
x=#f108
a=#f105
d=#f106
s=#f194
That means:
When W is pressed, send key code 103 (Up) to /proc/fiveway
When X is pressed, send key code 108 (Down) to /proc/fiveway
When A is pressed, send key code 105 (Left) to /proc/fiveway
When D is pressed, send key code 106 (Right) to /proc/fiveway
When S is pressed, send key code 194 (Select) to /proc/fiveway
This mapping is enabled on start, to disable/reenable press Shift-Space.

Changelog message:
Quote:
physkeyb:
- Reformatted java sources
- Added option enabledonstart to keyboard.txt
- Added ability to send low-level key events:
#<target flag><key code>
Examples:
w=#f103
- Send code 103 (Up) to /proc/fiveway when key W is pressed
o=#v114
- Send code 114 (Volume-) to /proc/volume when key O is pressed
f=#k191
- Send code 191 (RightNextPage) to /proc/keypad when key F is pressed
See https://github.com/dpavlin/k3libre/b...ts/keydefs.ini

Last edited by dsmid; 11-16-2012 at 04:31 AM.
dsmid is offline   Reply With Quote