aspose file tools*
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
Author

NEC e616V - softkeys

Svend Rost
Ranch Hand

Joined: Oct 23, 2002
Posts: 904
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

Joined: Feb 05, 2001
Posts: 17259
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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
 
 
subject: NEC e616V - softkeys