Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NEC e616V - softkeys

 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've just begun to work on a NEC e616V, but it's like the softkeys (left
and right, aka. SK1 and SK2) are disabled. The keys are activated (i.e. work) when
using Command's, but when I try to "listen for keys" (i.e. impl. a KeyListener), nothing happends
when I press the keys.

Does anyone have a solution/expirience with this problem ?

Im using MIDP 2.0 btw.


--
Edit: Problem solved thanks for looking though
--

/Svend Rost
[ July 05, 2005: Message edited by: Svend Rost ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, are you going to tell us?

Is it like Game-Keys, where you have to find the int that represents the Key at the beginning of the KeyReleased or other Key related Callback Methods to get the correct KeyCode.

For instance,


int getKeyCode(int gameAction)
Gets a key code that corresponds to the specified game action on the device.


Then you can see if that matches the KeyCode passed to the KeyReleased method?

Mark
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem was, that no key events was beeing send away, when you pressed
one of the softkeys.

I made two wrapper commands, one for each softkeys. If the leftSoftkeyCommand
was activated, i.e. left soft key was pressed, it would call the "keyPressed(leftKeyNumber)" method.

I hope the above is understandable, else reply for more info.

/Svend Rost
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic