File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java Micro Edition and the fly likes NEC e616V - softkeys Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "NEC e616V - softkeys" Watch "NEC e616V - softkeys" New topic

NEC e616V - softkeys

Svend Rost
Ranch Hand

Joined: Oct 23, 2002
Posts: 904

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

Joined: Feb 05, 2001
Posts: 17276

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?


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Svend Rost
Ranch Hand

Joined: Oct 23, 2002
Posts: 904
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
I agree. Here's the link:
subject: NEC e616V - softkeys
jQuery in Action, 3rd edition