Home
last modified time | relevance | path

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

12

/external/qemu/distrib/sdl-1.2.15/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.15/src/video/symbian/EKA2/
DSDL_epocevents.cpp27 static SDL_keysym *TranslateKey(_THIS, int scancode, SDL_keysym *keysym);
33 static SDL_keysym *TranslateKey(_THIS, int scancode, SDL_keysym *keysym);
440 static SDL_keysym *TranslateKey(_THIS, int scancode, SDL_keysym *keysym) in TranslateKey() argument
447 keysym->scancode = scancode; in TranslateKey()
449 if ((scancode >= MAX_SCANCODE) && in TranslateKey()
450 ((scancode - ENonCharacterKeyBase + 0x0081) >= MAX_SCANCODE)) { in TranslateKey()
452 keysym->scancode = SDLK_UNKNOWN; in TranslateKey()
461 if (scancode >= 'A' && scancode < ('A' + 24)) { /* first 32 alphabet keys */ in TranslateKey()
462 switch(scancode) { in TranslateKey()
463 case 'Q': scancode = EStdKeyF1; break; in TranslateKey()
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/symbian/EKA1/
DSDL_epocevents.cpp55 static SDL_keysym *TranslateKey(_THIS, int scancode, SDL_keysym *keysym);
546 static SDL_keysym *TranslateKey(_THIS, int scancode, SDL_keysym *keysym) in TranslateKey() argument
553 keysym->scancode = scancode; in TranslateKey()
555 if ((scancode >= MAX_SCANCODE) && in TranslateKey()
556 ((scancode - ENonCharacterKeyBase + 0x0081) >= MAX_SCANCODE)) { in TranslateKey()
558 keysym->scancode = SDLK_UNKNOWN; in TranslateKey()
567 if (scancode >= 'A' && scancode < ('A' + 24)) { /* first 32 alphabet keys */ in TranslateKey()
568 switch(scancode) { in TranslateKey()
569 case 'Q': scancode = EStdKeyF1; break; in TranslateKey()
570 case 'W': scancode = EStdKeyF2; break; in TranslateKey()
[all …]
/external/qemu/distrib/sdl-1.2.15/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.15/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.15/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()
/external/qemu/distrib/sdl-1.2.15/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.15/src/video/ataricommon/
DSDL_atarievents.c214 SDL_keysym *SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym, in SDL_Atari_TranslateKey() argument
220 keysym->scancode = scancode; in SDL_Atari_TranslateKey()
222 keysym->sym = keymap[scancode]; in SDL_Atari_TranslateKey()
226 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.c112 #define UPDATE_SPECIAL_KEYS(numbit,scancode) \ in UpdateSpecialKeys() argument
115 gemdos_currentkeyboard[scancode]=0xFF; \ in UpdateSpecialKeys()
DSDL_atarievents_c.h49 SDL_keysym *SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym,
/external/qemu/distrib/sdl-1.2.15/src/video/windib/
DSDL_dibevents.c54 static SDL_keysym *TranslateKey(WPARAM vkey, UINT scancode, SDL_keysym *keysym, int pressed);
539 #define EXTKEYPAD(keypad) ((scancode & 0x100)?(mvke):(keypad))
541 static int SDL_MapVirtualKey(int scancode, int vkey) in SDL_MapVirtualKey() argument
544 int mvke = MapVirtualKeyEx(scancode & 0xFF, 1, hLayoutUS); in SDL_MapVirtualKey()
546 int mvke = MapVirtualKey(scancode & 0xFF, 1); in SDL_MapVirtualKey()
586 static SDL_keysym *TranslateKey(WPARAM vkey, UINT scancode, SDL_keysym *keysym, int pressed) in TranslateKey() argument
589 keysym->scancode = (unsigned char) scancode; in TranslateKey()
593 if ((vkey == VK_RETURN) && (scancode & 0x100)) { in TranslateKey()
598 keysym->sym = VK_keymap[SDL_MapVirtualKey(scancode, vkey)]; in TranslateKey()
617 …else if (SDL_ToUnicode((UINT)vkey, scancode, keystate, wchars, sizeof(wchars)/sizeof(wchars[0]), 0… in TranslateKey()
[all …]
/external/qemu/distrib/sdl-1.2.15/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.15/src/video/fbcon/
DSDL_fbevents.c66 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
999 int scancode; in handle_keyboard() local
1004 scancode = keybuf[i] & 0x7F; in handle_keyboard()
1010 TranslateKey(scancode, &keysym); in handle_keyboard()
1213 static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym) in TranslateKey() argument
1216 keysym->scancode = scancode; in TranslateKey()
1217 keysym->sym = keymap[scancode]; in TranslateKey()
1240 if ( KTYP(vga_keymap[map][scancode]) == KT_LETTER ) { in TranslateKey()
1245 if ( KTYP(vga_keymap[map][scancode]) == KT_PAD ) { in TranslateKey()
1247 keysym->unicode=KVAL(vga_keymap[map][scancode]); in TranslateKey()
[all …]
/external/qemu/distrib/sdl-1.2.15/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.15/src/video/dga/
DSDL_dgaevents.c90 keysym.scancode = keycode; in DGA_DispatchEvent()
126 keysym.scancode = keycode; in DGA_DispatchEvent()
/external/qemu/distrib/sdl-1.2.15/src/video/gem/
DSDL_gemevents.c280 int scancode; in do_keyboard() local
283 scancode=(kc>>8) & (ATARIBIOS_MAXKEYS-1); in do_keyboard()
284 gem_currentkeyboard[scancode]=0xFF; in do_keyboard()
/external/qemu/distrib/sdl-1.2.15/src/video/windx5/
DSDL_dx5events.c60 static SDL_keysym *TranslateKey(UINT scancode, SDL_keysym *keysym, int pressed);
899 static SDL_keysym *TranslateKey(UINT scancode, SDL_keysym *keysym, int pressed) in TranslateKey() argument
902 keysym->scancode = (unsigned char)scancode; in TranslateKey()
903 keysym->sym = DIK_keymap[scancode]; in TranslateKey()
913 vkey = MapVirtualKey(scancode, 1); in TranslateKey()
925 else if (SDL_ToUnicode(vkey, scancode, keystate, wchars, sizeof(wchars)/sizeof(wchars[0]), 0) > 0) in TranslateKey()
/external/qemu/distrib/sdl-1.2.15/include/
DSDL_keyboard.h60 Uint8 scancode; /**< hardware specific scancode */ member
/external/qemu/distrib/sdl-1.2.15/src/video/x11/
DSDL_x11events.c569 keysym.scancode = keycode; in X11_DispatchEvent()
667 keysym.scancode = 0; in X11_DispatchEvent()
677 keysym.scancode = keycode; in X11_DispatchEvent()
697 keysym.scancode = keycode; in X11_DispatchEvent()
730 keysym.scancode = keycode; in X11_DispatchEvent()
769 keysym.scancode = keycode; in X11_DispatchEvent()
/external/qemu/distrib/sdl-1.2.15/src/video/quartz/
DSDL_QuartzEvents.m208 Up there we setup a static scancode->keysym map. However, it will not
345 the scancode/keysym.
359 key.scancode = [ event keyCode ];
360 key.sym = keymap [ key.scancode ];
368 key.scancode = [ event keyCode ];
369 key.sym = keymap [ key.scancode ];
377 key.scancode = 0;
401 key.scancode = 0;
443 key.scancode = 0;
474 key.scancode = 0;
[all …]
/external/qemu/distrib/sdl-1.2.15/src/video/nds/
DSDL_ndsevents.c44 keysym.scancode=i; in NDS_PumpEvents()
/external/qemu/distrib/sdl-1.2.15/src/video/caca/
DSDL_cacaevents.c70 keysym.scancode = key; in Caca_PumpEvents()

12