#include <MAUtil/CharInput.h>
Inheritance diagram for MAUtil::CharInput:
This can only be used together with the Moblet system as it depends on functionality in Environment (key input and timers).
This class is a singleton. Retrieve its instance with getCharInput().
Public Types | |
enum | CharMode { LOWERCASE = 0, UPPERCASE = 1, NUMBERS = 2 } |
Public Member Functions | |
bool | isCharInputListener (CharInputListener *listener) |
void | addCharInputListener (CharInputListener *listener) |
void | removeCharInputListener (CharInputListener *listener) |
virtual void | keyPressEvent (int keyCode, int nativeCode) |
virtual void | keyReleaseEvent (int keyCode, int nativeCode) |
void | runTimerEvent () |
void | forceDeployment () |
void | setMode (CharMode charMode) |
CharMode | getMode () const |
void | setQwerty (bool on) |
bool | getQwerty () const |
virtual void | keyPressEvent (int keyCode) |
virtual void | keyReleaseEvent (int keyCode) |
Static Public Member Functions | |
static CharInput & | getCharInput () |
|
Enumerator for the different input modes. |
|
is a CharInputListener? |
|
Add a CharInputListener to the system. |
|
Remove a CharInputListener from the system. |
|
Inherited function from class Keylistener, updates the system. Reimplemented from MAUtil::KeyListener. |
|
Inherited function from class Keylistener, updates the system. Reimplemented from MAUtil::KeyListener. |
|
Inherited function from class TimerListener, updates the system. Implements MAUtil::TimerListener. |
|
Get the charinput singleton. (only one instance can exist). |
|
Force deployment of the currently selected character. |
|
Set the character input mode. |
|
Get the character input mode. |
|
In standard mode, only the 0-9, # and * keys are used. This is suitable for devices with such keypads. In qwerty mode, all keys are used. This is suitable for devices with qwerty keyboards. |
|
Get the qwerty mode. |
|
|
|
|