Home
last modified time | relevance | path

Searched refs:scancode (Results 1 – 25 of 45) sorted by relevance

12

/external/qemu/distrib/sdl-1.2.12/src/video/qtopia/
DSDL_QWin.cc374 int scancode = e->key(); in QueueKey() local
376 if(scancode >= 'A' && scancode <= 'Z') { in QueueKey()
378 keysym.sym = static_cast<SDLKey>(scancode + 32); in QueueKey()
379 } else if(scancode >= 0x1000) { in QueueKey()
381 switch(scancode) { in QueueKey()
382 case Qt::Key_Escape: scancode = SDLK_ESCAPE; break; in QueueKey()
383 case Qt::Key_Tab: scancode = SDLK_TAB; break; in QueueKey()
384 case Qt::Key_Backspace: scancode = SDLK_BACKSPACE; break; in QueueKey()
385 case Qt::Key_Return: scancode = SDLK_RETURN; break; in QueueKey()
386 case Qt::Key_Enter: scancode = SDLK_KP_ENTER; break; in QueueKey()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/epoc/
DSDL_epocevents.cpp52 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
348 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
355 keysym->scancode = scancode; in TranslateKey()
357 if ((scancode >= MAX_SCANCODE) && in TranslateKey()
358 ((scancode - ENonCharacterKeyBase + 0x0081) >= MAX_SCANCODE)) { in TranslateKey()
360 keysym->scancode = SDLK_UNKNOWN; in TranslateKey()
369 if (scancode >= 'A' && scancode < ('A' + 24)) { /* first 32 alphapet keys */ in TranslateKey()
370 switch(scancode) { in TranslateKey()
371 case 'Q': scancode = EStdKeyF1; break; in TranslateKey()
372 case 'W': scancode = EStdKeyF2; break; in TranslateKey()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/svga/
DSDL_svgaevents.c54 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
187 void SVGA_keyboardcallback(int scancode, int pressed) in SVGA_keyboardcallback() argument
193 TranslateKey(scancode, &keysym)); in SVGA_keyboardcallback()
196 TranslateKey(scancode, &keysym)); in SVGA_keyboardcallback()
336 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
339 keysym->scancode = scancode; in TranslateKey()
340 keysym->sym = keymap[scancode]; in TranslateKey()
363 if ( KTYP(vga_keymap[map][scancode]) == KT_LETTER ) { in TranslateKey()
368 if ( KTYP(vga_keymap[map][scancode]) == KT_PAD ) { in TranslateKey()
370 keysym->unicode=KVAL(vga_keymap[map][scancode]); in TranslateKey()
[all …]
DSDL_svgaevents_c.h32 extern void SVGA_keyboardcallback(int scancode, int pressed);
/external/qemu/distrib/sdl-1.2.12/src/video/aalib/
DSDL_aaevents.c39 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
184 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
187 if ( scancode >= SDL_arraysize(keymap) ) in TranslateKey()
188 scancode = AA_UNKNOWN; in TranslateKey()
191 keysym->scancode = scancode; in TranslateKey()
192 keysym->sym = keymap[scancode]; in TranslateKey()
199 keysym->unicode = scancode; in TranslateKey()
DSDL_aaevents_c.h32 extern void AA_keyboardcallback(int scancode, int pressed);
/external/qemu/distrib/sdl-1.2.12/src/video/vgl/
DSDL_vglevents.c44 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
75 int c, pressed, scancode; in handle_keyboard() local
78 scancode = c & 0x7F; in handle_keyboard()
86 TranslateKey(scancode, &keysym)); in handle_keyboard()
268 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
271 keysym->scancode = scancode; in TranslateKey()
272 keysym->sym = keymap[scancode]; in TranslateKey()
292 if ( !(vga_keymap->key[scancode].spcl & (0x80 >> map)) ) { in TranslateKey()
293 keysym->unicode = vga_keymap->key[scancode].map[map]; in TranslateKey()
DSDL_vglevents_c.h31 extern void VGL_keyboardcallback(int scancode, int pressed);
/external/qemu/distrib/sdl-1.2.12/src/video/windib/
DSDL_dibevents.c46 static SDL_keysym *TranslateKey(WPARAM vkey, UINT scancode, SDL_keysym *keysym, int pressed);
435 #define EXTKEYPAD(keypad) ((scancode & 0x100)?(mvke):(keypad))
437 static int SDL_MapVirtualKey(int scancode, int vkey) in SDL_MapVirtualKey() argument
440 int mvke = MapVirtualKeyEx(scancode & 0xFF, 1, hLayoutUS); in SDL_MapVirtualKey()
442 int mvke = MapVirtualKey(scancode & 0xFF, 1); in SDL_MapVirtualKey()
482 static SDL_keysym *TranslateKey(WPARAM vkey, UINT scancode, SDL_keysym *keysym, int pressed) in TranslateKey() argument
485 keysym->scancode = (unsigned char) scancode; in TranslateKey()
497 …if (SDL_ToUnicode((UINT)vkey, scancode, keystate, wchars, sizeof(wchars)/sizeof(wchars[0]), 0) == … in TranslateKey()
504 if ((vkey == VK_RETURN) && (scancode & 0x100)) { in TranslateKey()
509 keysym->sym = VK_keymap[SDL_MapVirtualKey(scancode, vkey)]; in TranslateKey()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/wscons/
DSDL_wsconsevents.c98 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
100 keysym->scancode = scancode; in TranslateKey()
104 if (scancode < SDL_arraysize(keymap)) in TranslateKey()
105 keysym->sym = keymap[scancode]; in TranslateKey()
108 printf("Unknown mapping for scancode %d\n", scancode); in TranslateKey()
/external/qemu/distrib/sdl-1.2.12/src/video/ataricommon/
DSDL_atarievents.c219 SDL_keysym *SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym, in SDL_Atari_TranslateKey() argument
225 keysym->scancode = scancode; in SDL_Atari_TranslateKey()
227 keysym->sym = keymap[scancode]; in SDL_Atari_TranslateKey()
231 keysym->sym = asciicode = keytab_normal[scancode]; in SDL_Atari_TranslateKey()
DSDL_biosevents.c111 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \ in UpdateSpecialKeys() argument
114 bios_currentkeyboard[scancode]=0xFF; \ in UpdateSpecialKeys()
DSDL_gemdosevents.c117 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \ in UpdateSpecialKeys() argument
120 gemdos_currentkeyboard[scancode]=0xFF; \ in UpdateSpecialKeys()
DSDL_atarievents_c.h62 SDL_keysym *SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym,
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/
DSDL_gsevents.c59 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
765 int scancode; in handle_keyboard() local
770 scancode = keybuf[i] & 0x7F; in handle_keyboard()
776 TranslateKey(scancode, &keysym); in handle_keyboard()
936 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
939 keysym->scancode = scancode; in TranslateKey()
940 keysym->sym = keymap[scancode]; in TranslateKey()
963 if ( KTYP(vga_keymap[map][scancode]) == KT_LETTER ) { in TranslateKey()
968 if ( KTYP(vga_keymap[map][scancode]) == KT_PAD ) { in TranslateKey()
970 keysym->unicode=KVAL(vga_keymap[map][scancode]); in TranslateKey()
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
DSDL_fbevents.c66 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
990 int scancode; in handle_keyboard() local
995 scancode = keybuf[i] & 0x7F; in handle_keyboard()
1001 TranslateKey(scancode, &keysym); in handle_keyboard()
1204 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
1207 keysym->scancode = scancode; in TranslateKey()
1208 keysym->sym = keymap[scancode]; in TranslateKey()
1231 if ( KTYP(vga_keymap[map][scancode]) == KT_LETTER ) { in TranslateKey()
1236 if ( KTYP(vga_keymap[map][scancode]) == KT_PAD ) { in TranslateKey()
1238 keysym->unicode=KVAL(vga_keymap[map][scancode]); in TranslateKey()
[all …]
Dout12 /* The translation tables from a console scancode to a SDL keysym */
/external/qemu/distrib/sdl-1.2.12/src/video/maccommon/
DSDL_macevents.c61 static SDL_keysym *TranslateKey(int scancode, int modifiers,
189 keysym.scancode = 0; in Mac_HandleEvents()
649 static SDL_keysym *TranslateKey(int scancode, int modifiers, in TranslateKey() argument
653 keysym->scancode = scancode; in TranslateKey()
654 keysym->sym = MAC_keymap[keysym->scancode]; in TranslateKey()
669 keysym->scancode|modifiers, &state) & 0xFFFF; in TranslateKey()
/external/qemu/distrib/sdl-1.2.12/src/video/dga/
DSDL_dgaevents.c89 keysym.scancode = keycode; in DGA_DispatchEvent()
125 keysym.scancode = keycode; in DGA_DispatchEvent()
/external/qemu/distrib/sdl-1.2.12/src/video/windx5/
DSDL_dx5events.c60 static SDL_keysym *TranslateKey(UINT scancode, SDL_keysym *keysym, int pressed);
823 static SDL_keysym *TranslateKey(UINT scancode, SDL_keysym *keysym, int pressed) in TranslateKey() argument
826 keysym->scancode = (unsigned char)scancode; in TranslateKey()
827 keysym->sym = DIK_keymap[scancode]; in TranslateKey()
837 vkey = MapVirtualKey(scancode, 1); in TranslateKey()
843 if (SDL_ToUnicode(vkey, scancode, keystate, wchars, sizeof(wchars)/sizeof(wchars[0]), 0) == 1) in TranslateKey()
/external/qemu/distrib/sdl-1.2.12/src/video/gem/
DSDL_gemevents.c275 int scancode; in do_keyboard() local
278 scancode=(kc>>8) & (ATARIBIOS_MAXKEYS-1); in do_keyboard()
279 gem_currentkeyboard[scancode]=0xFF; in do_keyboard()
/external/qemu/distrib/sdl-1.2.12/include/
DSDL_keyboard.h55 Uint8 scancode; /* hardware specific scancode */ member
/external/qemu/distrib/sdl-1.2.12/src/video/quartz/
DSDL_QuartzEvents.m195 Up there we setup a static scancode->keysym map. However, it will not
267 the scancode/keysym.
280 key.scancode = [ event keyCode ];
281 key.sym = keymap [ key.scancode ];
289 key.scancode = [ event keyCode ];
290 key.sym = keymap [ key.scancode ];
298 key.scancode = 0;
325 key.scancode = 0;
367 key.scancode = 0;
398 key.scancode = 0;
[all …]
/external/qemu/distrib/sdl-1.2.12/src/video/x11/
DSDL_x11events.c564 keysym.scancode = keycode; in X11_DispatchEvent()
662 keysym.scancode = 0; in X11_DispatchEvent()
672 keysym.scancode = keycode; in X11_DispatchEvent()
692 keysym.scancode = keycode; in X11_DispatchEvent()
725 keysym.scancode = keycode; in X11_DispatchEvent()
764 keysym.scancode = keycode; in X11_DispatchEvent()
/external/kernel-headers/original/linux/
Dkd.h129 unsigned int scancode, keycode; member

12