/usr/include/gammu/gammu-keys.h is in libgammu-dev 1.38.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | /**
* \file gammu-keys.h
* \author Michal Čihař
*
* Keys data and functions.
*/
#ifndef __gammu_keys_h
#define __gammu_keys_h
#ifdef __cplusplus
extern "C" {
#endif
/**
* \defgroup Keys Keys
* Keyboard manipulations.
*/
#include <gammu-error.h>
#include <gammu-statemachine.h>
#include <gammu-types.h>
#include <stdlib.h> /* Needed for size_t declaration */
/**
* Key event identifiers.
*
* \ingroup Keys
*/
typedef enum {
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,
/**
* Power key.
*/
GSM_KEY_POWER,
/**
* in some phone ie. N5110 sometimes works identical to POWER
*/
GSM_KEY_GREEN,
/**
* (c) key in some phone: ie. N5110
*/
GSM_KEY_RED,
/**
* Not available in some phones as separate button: ie. N5110
*/
GSM_KEY_INCREASEVOLUME,
/**
* Not available in some phones as separate button: ie. N5110
*/
GSM_KEY_DECREASEVOLUME,
GSM_KEY_UP = 0x17,
GSM_KEY_DOWN,
GSM_KEY_MENU,
/**
* Not available in some phone: ie. N5110
*/
GSM_KEY_NAMES,
/**
* Left arrow
*/
GSM_KEY_LEFT,
/**
* Right arrow
*/
GSM_KEY_RIGHT,
/**
* Software key which has assigned mening on display.
*/
GSM_KEY_SOFT1,
/**
* Software key which has assigned mening on display.
*/
GSM_KEY_SOFT2,
/**
* Button on headset
*/
GSM_KEY_HEADSET,
/**
* Joystick pressed
*/
GSM_KEY_JOYSTICK,
/**
* Camera button pressed
*/
GSM_KEY_CAMERA,
/**
* Media player button
*/
GSM_KEY_MEDIA,
/**
* Multi function key, desktop
*/
GSM_KEY_DESKTOP,
/**
* Operator button
*/
GSM_KEY_OPERATOR,
/**
* Return button
*/
GSM_KEY_RETURN,
/**
* Clear button
*/
GSM_KEY_CLEAR,
} GSM_KeyCode;
/**
* Creates key sequence from string.
*
* \param text Text to convert.
* \param KeyCode Storage for key codes.
* \param Length Storage for resulting length.
*
* \return Error code.
*
* \ingroup Keys
*/
GSM_Error MakeKeySequence(char *text, GSM_KeyCode * KeyCode, size_t * Length);
/**
* Emulates key press or key release.
*
* \ingroup Keys
*/
GSM_Error GSM_PressKey(GSM_StateMachine * s, GSM_KeyCode Key, gboolean Press);
#ifdef __cplusplus
}
#endif
#endif
/* Editor configuration
* vim: noexpandtab sw=8 ts=8 sts=8 tw=72:
*/
|