com.nutiteq.controls
Class UserDefinedKeysMapping

java.lang.Object
  extended by 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.


Constructor Summary
UserDefinedKeysMapping()
           
 
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
 

Constructor Detail

UserDefinedKeysMapping

public UserDefinedKeysMapping()
Method Detail

defineKey

public void defineKey(int actionCode,
                      int keyCode)
Define controlaction for key code.

Parameters:
actionCode - action code
keyCode - 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