| View previous topic :: View next topic |
| Author |
Message |
shen
Joined: 15 Oct 2008 Posts: 324 Location: DE
|
Posted: Sat Mar 14, 2009 4:09 pm Post subject: keymap.txt not fully working in 0.9.83 |
|
|
See also http://www.trekbuddy.net/forum/viewtopic.php?t=2928
I am having problems with the keys 2, 4, 6 and 8 - they do not work as arrow keys or to change scale and red/blue needles in the compass screen.
All other keys like 1,3,5,7,9 and 0 are working as the should.
I'm using the following keymap for my german keyboard layout:
| Code: |
119=49
101=50
114=51
115=52
100=53
102=54
121=55
120=56
99=57
97=42
48=48
113=35
|
The Keycodes on both sides are correct, so this must be a bug in TB.
Thanks
Stefan |
|
| Back to top |
|
 |
shen
Joined: 15 Oct 2008 Posts: 324 Location: DE
|
Posted: Fri Jul 03, 2009 1:00 pm Post subject: |
|
|
This still does not work in the actual beta 0.9.84 i downloaded yesterday, please have a look at this, thanks.
Stefan |
|
| Back to top |
|
 |
Bold
Joined: 10 Jul 2009 Posts: 12 Location: in the dutch mountains :)
|
Posted: Fri Jul 10, 2009 1:36 pm Post subject: |
|
|
I'm using a similar keymap file but for english keyboard layout. same issue here.
perhaps it would be possible to create a keymap file which contains settings for each individual screen (map, compass, cms) so if anyone is seeing problems he can fix it on it's own. _________________ blackberry bold 9000 / tb 0.9.87 / TAC |
|
| Back to top |
|
 |
shen
Joined: 15 Oct 2008 Posts: 324 Location: DE
|
Posted: Sat Jul 11, 2009 7:03 am Post subject: |
|
|
Individual keymaps for each screen sounds very good to me too
Stefan |
|
| Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5096
|
Posted: Sun Jul 12, 2009 1:07 pm Post subject: |
|
|
Hmm, keymapping on BB is a bit trickier.
Changing scale/mode od compass screen is bound to game actions; raw keycode is first "resolved" to game action (via API call).
On classic devices, the game keys are 2-4-6-8, however on BB devices the keys are different (see "RIM Implementation Note" in http://www.blackberry.com/developers/docs/4.1api/javax/microedition/lcdui/Canvas.html). So you may need to remap keycodes for 2-4-6-8 to U-G-H-J, for instance:
101=117
115=103
102=104
120=106 |
|
| Back to top |
|
 |
shen
Joined: 15 Oct 2008 Posts: 324 Location: DE
|
Posted: Sun Jul 12, 2009 3:44 pm Post subject: |
|
|
Ok, so if this is the reason it's not a bug, it's a matter of wrong mapping for BlackBerry devices, which the users can fix by their own.
So I updated the BB mappings for keymap.txt in the wiki, see http://wiki.trekbuddy.net/index.php/Customization - with the values standing there before it did only work for the map screen, not for the compass screen. I also wrote down some comments to explain how things are mapped now.
Now on devices with trackball (i.e. Bold) either 2-4-6-8 or the trackball can be used for moving the map and 2-4-6-8 can be used for switching compass averaging and compass scale. On devices w/o trackball, only the keys can be used.
The new feature of north locking (since v0.9.84 beta) was mapped to 5 instead of SPACE to prevent it from being activated by accident.
Thanks Kruch, problem solved
BTW: Is it possible to add comments to keymap.txt that are ignored by the parser (just for reference and documentation of which line will affect which keys)? Something like
| Code: |
49=50; 1 gets 2
51=52; 3 gets 4 |
or
| Code: |
# 1 gets 2:
49=50
# 3 gets 4:
51=52 |
Stefan |
|
| Back to top |
|
 |
|