Lines Matching defs:scancode
54 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)
544 int mvke = MapVirtualKeyEx(scancode & 0xFF, 1, hLayoutUS);
546 int mvke = MapVirtualKey(scancode & 0xFF, 1);
586 static SDL_keysym *TranslateKey(WPARAM vkey, UINT scancode, SDL_keysym *keysym, int pressed)
589 keysym->scancode = (unsigned char) scancode;
593 if ((vkey == VK_RETURN) && (scancode & 0x100)) {
598 keysym->sym = VK_keymap[SDL_MapVirtualKey(scancode, vkey)];
617 else if (SDL_ToUnicode((UINT)vkey, scancode, keystate, wchars, sizeof(wchars)/sizeof(wchars[0]), 0) > 0)
627 int sc = scancode & 0xFF;
631 keysym->sym, vkey, scancode,