Lines Matching defs:key

39  * 26 00 00 00 00	for key repeat
50 * 26 00 00 00 00 for key repeat
53 * sent after a key is release, which I interpret
66 * 26 87 ee 47 ** for key repeat (** is the code of the key being held)
111 struct timer_list key_up_timer; /* timer for key up */
113 int current_key; /* the currently pressed key */
114 int prev_key_idx; /* key index in a 2 packets message */
120 * The key is coded accross bits 2..9:
122 * 0x00 or 0x01 ( ) key: 0 -> KEY_RESERVED
123 * 0x02 or 0x03 ( menu ) key: 1 -> KEY_MENU
124 * 0x04 or 0x05 ( >" ) key: 2 -> KEY_PLAYPAUSE
125 * 0x06 or 0x07 ( >> ) key: 3 -> KEY_FORWARD
126 * 0x08 or 0x09 ( << ) key: 4 -> KEY_BACK
127 * 0x0a or 0x0b ( + ) key: 5 -> KEY_VOLUMEUP
128 * 0x0c or 0x0d ( - ) key: 6 -> KEY_VOLUMEDOWN
129 * 0x0e or 0x0f ( ) key: 7 -> KEY_RESERVED
130 * 0x50 or 0x51 ( ) key: 8 -> KEY_RESERVED
131 * 0x52 or 0x53 ( ) key: 9 -> KEY_RESERVED
132 * 0x54 or 0x55 ( ) key: 10 -> KEY_RESERVED
133 * 0x56 or 0x57 ( ) key: 11 -> KEY_RESERVED
134 * 0x58 or 0x59 ( ) key: 12 -> KEY_RESERVED
135 * 0x5a or 0x5b ( ) key: 13 -> KEY_RESERVED
136 * 0x5c or 0x5d ( middle ) key: 14 -> KEY_ENTER
137 * 0x5e or 0x5f ( >" ) key: 15 -> KEY_PLAYPAUSE
142 int key = (data >> 1) & KEY_MASK;
146 key = -key;
148 return key;
151 static void key_up(struct hid_device *hid, struct appleir *appleir, int key)
153 input_report_key(appleir->input_dev, key, 0);
157 static void key_down(struct hid_device *hid, struct appleir *appleir, int key)
159 input_report_key(appleir->input_dev, key, 1);
199 * If we already have a key down, take it up before marking
216 * Remote doesn't do key up, either pull them up, in
223 /* Remember key for next packet */
234 * Remote doesn't do key up, either pull them up, in the test