Gammu internals
1.38.0
|
Enumerations | |
enum | GSM_KeyCode { GSM_KEY_NONE = 0x00, GSM_KEY_1 = 0x01, GSM_KEY_2, GSM_KEY_3, GSM_KEY_4, GSM_KEY_5, GSM_KEY_6, GSM_KEY_7, GSM_KEY_8, GSM_KEY_9, GSM_KEY_0, GSM_KEY_HASH, GSM_KEY_ASTERISK, GSM_KEY_POWER, GSM_KEY_GREEN, GSM_KEY_RED, GSM_KEY_INCREASEVOLUME, GSM_KEY_DECREASEVOLUME, GSM_KEY_UP = 0x17, GSM_KEY_DOWN, GSM_KEY_MENU, GSM_KEY_NAMES, GSM_KEY_LEFT, GSM_KEY_RIGHT, GSM_KEY_SOFT1, GSM_KEY_SOFT2, GSM_KEY_HEADSET, GSM_KEY_JOYSTICK, GSM_KEY_CAMERA, GSM_KEY_MEDIA, GSM_KEY_DESKTOP, GSM_KEY_OPERATOR, GSM_KEY_RETURN, GSM_KEY_CLEAR } |
Functions | |
GSM_Error | MakeKeySequence (char *text, GSM_KeyCode *KeyCode, size_t *Length) |
GSM_Error | GSM_PressKey (GSM_StateMachine *s, GSM_KeyCode Key, gboolean Press) |
Keyboard manipulations.
enum GSM_KeyCode |
Key event identifiers.
Definition at line 30 of file gammu-keys.h.
GSM_Error GSM_PressKey | ( | GSM_StateMachine * | s, |
GSM_KeyCode | Key, | ||
gboolean | Press | ||
) |
Emulates key press or key release.
Definition at line 320 of file api.c.
References CHECK_PHONE_CONNECTION, GSM_Phone::Functions, _GSM_StateMachine::Phone, GSM_Phone_Functions::PressKey, and PRINT_LOG_ERROR.
GSM_Error MakeKeySequence | ( | char * | text, |
GSM_KeyCode * | KeyCode, | ||
size_t * | Length | ||
) |
Creates key sequence from string.
text | Text to convert. |
KeyCode | Storage for key codes. |
Length | Storage for resulting length. |
Definition at line 49 of file gsmmisc.c.
References ERR_NONE, ERR_NOTSUPPORTED, GSM_KEY_NONE, keys_table_position::whatchar, and keys_table_position::whatcode.