icon TrekBuddy
www.trekbuddy.net
Outdoor companion.
  • bluetooth / serial / internal GPS, simulator
  • offline raster maps (common grids and projections)
  • smart GPX / raw NMEA logs
  • waypoints and simple navigation
  • ... and more
  • MIDP and Symbian phones
  • Blackberry
  • Android
  • Windows Mobile 5.x/6.x
  • Windows Phone coming
Visit our wiki to see all features, guides and howtos. Project tracker.

Partners:    (Polish/Polski)(Polski) Compass mapy      (Polish/Polski)(Polski) Galileos mapy      (Polish/Polski)(Polski) CartoMedia      (Czech/Èesky)(Èesky) Eaglesoft trasy      (Polish/Polski)(Polski) ExpressMap     

 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
keymap.txt not fully working in 0.9.83

 
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs
View previous topic :: View next topic  
Author Message
shen



Joined: 15 Oct 2008
Posts: 324
Location: DE

PostPosted: Sat Mar 14, 2009 4:09 pm    Post subject: keymap.txt not fully working in 0.9.83 Reply with quote

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
View user's profile Send private message Visit poster's website
shen



Joined: 15 Oct 2008
Posts: 324
Location: DE

PostPosted: Fri Jul 03, 2009 1:00 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Bold



Joined: 10 Jul 2009
Posts: 12
Location: in the dutch mountains :)

PostPosted: Fri Jul 10, 2009 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
shen



Joined: 15 Oct 2008
Posts: 324
Location: DE

PostPosted: Sat Jul 11, 2009 7:03 am    Post subject: Reply with quote

Individual keymaps for each screen sounds very good to me too Smile

Stefan
Back to top
View user's profile Send private message Visit poster's website
kruch
Site Admin


Joined: 02 Jul 2006
Posts: 5096

PostPosted: Sun Jul 12, 2009 1:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
shen



Joined: 15 Oct 2008
Posts: 324
Location: DE

PostPosted: Sun Jul 12, 2009 3:44 pm    Post subject: Reply with quote

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 Smile

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    TrekBuddy Forum Index -> Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group