com.nutiteq.controls
Class UserDefinedKeysMapping
java.lang.Object
com.nutiteq.controls.UserDefinedKeysMapping
- All Implemented Interfaces:
- ControlKeysHandler
- Direct Known Subclasses:
- AndroidKeysHandler
public class UserDefinedKeysMapping
- extends java.lang.Object
- implements ControlKeysHandler
Default control keys mapping used inside library. Developer needs to define
keys for actions defined in ControlKeys.
Multiple keys can be used for same action.
|
Method Summary |
void |
defineKey(int actionCode,
int keyCode)
Define controlaction for key code. |
int |
getKeyActionCode(int keyCode)
Get action code for the key |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserDefinedKeysMapping
public UserDefinedKeysMapping()
defineKey
public void defineKey(int actionCode,
int keyCode)
- Define controlaction for key code.
- Parameters:
actionCode - action codekeyCode - key code
getKeyActionCode
public int getKeyActionCode(int keyCode)
- Description copied from interface:
ControlKeysHandler
- Get action code for the key
- Specified by:
getKeyActionCode in interface ControlKeysHandler
- Parameters:
keyCode - phone key code
- Returns:
- action code from
ControlKeys