Lines Matching refs:scancode
236 int scancode = 0; in keysym2scancode() local
240 scancode = (code & 0xF) - 1; in keysym2scancode()
241 if (scancode<0) scancode += 10; in keysym2scancode()
242 scancode += KEY_1; in keysym2scancode()
247 scancode = map[code & 0xF]; in keysym2scancode()
256 scancode = map[code & 0xF]; in keysym2scancode()
264 scancode = map[(code & 0x5F) - 'A']; in keysym2scancode()
267 case 0x0003: scancode = KEY_CENTER; break; in keysym2scancode()
268 case 0x0020: scancode = KEY_SPACE; break; in keysym2scancode()
269 case 0x0023: scancode = KEY_SHARP; break; in keysym2scancode()
270 case 0x0033: scancode = KEY_SHARP; break; in keysym2scancode()
271 case 0x002C: scancode = KEY_COMMA; break; in keysym2scancode()
272 case 0x003C: scancode = KEY_COMMA; break; in keysym2scancode()
273 case 0x002E: scancode = KEY_DOT; break; in keysym2scancode()
274 case 0x003E: scancode = KEY_DOT; break; in keysym2scancode()
275 case 0x002F: scancode = KEY_SLASH; break; in keysym2scancode()
276 case 0x003F: scancode = KEY_SLASH; break; in keysym2scancode()
277 case 0x0032: scancode = KEY_EMAIL; break; in keysym2scancode()
278 case 0x0040: scancode = KEY_EMAIL; break; in keysym2scancode()
279 case 0xFF08: scancode = KEY_BACKSPACE; break; in keysym2scancode()
280 case 0xFF1B: scancode = KEY_BACK; break; in keysym2scancode()
281 case 0xFF09: scancode = KEY_TAB; break; in keysym2scancode()
282 case 0xFF0D: scancode = KEY_ENTER; break; in keysym2scancode()
283 case 0x002A: scancode = KEY_STAR; break; in keysym2scancode()
284 case 0xFFBE: scancode = KEY_F1; break; // F1 in keysym2scancode()
285 case 0xFFBF: scancode = KEY_F2; break; // F2 in keysym2scancode()
286 case 0xFFC0: scancode = KEY_F3; break; // F3 in keysym2scancode()
287 case 0xFFC5: scancode = KEY_F4; break; // F8 in keysym2scancode()
292 return scancode; in keysym2scancode()
297 int scancode; in keyevent() local
301 if ((scancode = keysym2scancode(down, key, cl))) in keyevent()
303 injectKeyEvent(scancode, down); in keyevent()