/AliOS-Things-master/components/SDL2/src/events/ |
A D | SDL_keyboard.c | 580 SDL_Scancode scancode; in SDL_ResetKeyboard() local 585 for (scancode = (SDL_Scancode) 0; scancode < SDL_NUM_SCANCODES; ++scancode) { in SDL_ResetKeyboard() 602 SDL_Scancode scancode; in SDL_SetKeymap() local 615 for (scancode = SDL_SCANCODE_1; scancode <= SDL_SCANCODE_9; ++scancode) { in SDL_SetKeymap() 616 keyboard->keymap[scancode] = SDLK_1 + (scancode - SDL_SCANCODE_1); in SDL_SetKeymap() 797 event.key.keysym.scancode = scancode; in SDL_SendKeyboardKeyInternal() 822 SDL_Scancode scancode; in SDL_ReleaseAutoReleaseKeys() local 825 for (scancode = SDL_SCANCODE_UNKNOWN; scancode < SDL_NUM_SCANCODES; ++scancode) { in SDL_ReleaseAutoReleaseKeys() 840 for (scancode = SDL_SCANCODE_UNKNOWN; scancode < SDL_NUM_SCANCODES; ++scancode) { in SDL_HardwareKeyboardKeyPressed() 955 for (scancode = SDL_SCANCODE_UNKNOWN; scancode < SDL_NUM_SCANCODES; in SDL_GetScancodeFromKey() [all …]
|
A D | SDL_keyboard_c.h | 45 extern void SDL_SetScancodeName(SDL_Scancode scancode, const char *name); 51 extern int SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode); 52 extern int SDL_SendKeyboardKeyAutoRelease(SDL_Scancode scancode);
|
A D | SDL_events.c | 192 (uint) event->key.keysym.scancode, \ in SDL_LogEvent()
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testautomation_keyboard.c | 229 SDL_Scancode scancode; in keyboard_getScancodeNameNegative() local 238 scancode = (SDL_Scancode)SDL_NUM_SCANCODES; in keyboard_getScancodeNameNegative() 520 SDL_Scancode scancode; in keyboard_getScancodeFromKey() local 523 scancode = SDL_GetScancodeFromKey(SDLK_4); in keyboard_getScancodeFromKey() 544 SDL_Scancode scancode; in keyboard_getScancodeFromName() local 547 scancode = SDL_GetScancodeFromName("A"); in keyboard_getScancodeFromName() 552 scancode = SDL_GetScancodeFromName("4"); in keyboard_getScancodeFromName() 557 scancode = SDL_GetScancodeFromName("F1"); in keyboard_getScancodeFromName() 562 scancode = SDL_GetScancodeFromName("End"); in keyboard_getScancodeFromName() 567 scancode = SDL_GetScancodeFromName("Find"); in keyboard_getScancodeFromName() [all …]
|
A D | testkeys.c | 25 SDL_Scancode scancode; in main() local 34 for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) { in main() 35 SDL_Log("Scancode #%d, \"%s\"\n", scancode, in main() 36 SDL_GetScancodeName(scancode)); in main()
|
A D | checkkeys.c | 120 sym->scancode, in PrintKey() 121 SDL_GetScancodeName(sym->scancode), in PrintKey() 126 sym->scancode, in PrintKey() 127 SDL_GetScancodeName(sym->scancode), in PrintKey()
|
A D | testime.c | 758 event.key.keysym.scancode, in main() 759 SDL_GetScancodeName(event.key.keysym.scancode), in main()
|
/AliOS-Things-master/components/SDL2/src/video/x11/ |
A D | SDL_x11keyboard.c | 43 SDL_Scancode scancode; member 193 return KeySymToSDLScancode[i].scancode; in X11_KeyCodeToSDLScancode() 255 SDL_Scancode scancode; in X11_InitKeyboard() member 388 SDL_Scancode scancode; in X11_InitKeyboard() local 392 data->key_layout[i] = scancode; in X11_InitKeyboard() 396 printf("scancode = %d (%s)\n", scancode, SDL_GetScancodeName(scancode)); in X11_InitKeyboard() 418 SDL_Scancode scancode; in X11_UpdateKeymap() local 440 scancode = data->key_layout[i]; in X11_UpdateKeymap() 441 if (scancode == SDL_SCANCODE_UNKNOWN) { in X11_UpdateKeymap() 448 keymap[scancode] = key; in X11_UpdateKeymap() [all …]
|
A D | SDL_x11events.c | 379 SDL_Scancode scancode = viddata->key_layout[keycode]; in X11_ReconcileKeyboardState() local 381 SDL_bool sdlKeyPressed = keyboardState[scancode] == SDL_PRESSED; in X11_ReconcileKeyboardState() 384 SDL_SendKeyboardKey(SDL_PRESSED, scancode); in X11_ReconcileKeyboardState() 386 SDL_SendKeyboardKey(SDL_RELEASED, scancode); in X11_ReconcileKeyboardState() 687 SDL_Scancode scancode = videodata->key_layout[orig_keycode]; in X11_DispatchEvent() local 692 SDL_SendKeyboardKey(SDL_PRESSED, scancode); in X11_DispatchEvent() 694 SDL_SendKeyboardKey(SDL_RELEASED, scancode); in X11_DispatchEvent()
|
/AliOS-Things-master/components/SDL2/src/video/emscripten/ |
A D | SDL_emscriptenevents.c | 480 Uint32 scancode; in Emscripten_HandleKey() local 491 scancode = SDL_SCANCODE_AC_FORWARD; in Emscripten_HandleKey() 494 scancode = SDL_SCANCODE_AC_BACK; in Emscripten_HandleKey() 498 if (scancode != SDL_SCANCODE_UNKNOWN) { in Emscripten_HandleKey() 501 switch (scancode) { in Emscripten_HandleKey() 509 scancode = SDL_SCANCODE_RALT; in Emscripten_HandleKey() 512 scancode = SDL_SCANCODE_RGUI; in Emscripten_HandleKey() 517 switch (scancode) { in Emscripten_HandleKey() 520 scancode = SDL_SCANCODE_KP_0; in Emscripten_HandleKey() 524 scancode = SDL_SCANCODE_KP_1; in Emscripten_HandleKey() [all …]
|
/AliOS-Things-master/components/SDL2/src/video/qnx/ |
A D | keyboard.c | 102 SDL_Scancode scancode; in handleKeyboardEvent() local 115 scancode = key_to_sdl[val]; in handleKeyboardEvent() 116 if (scancode == 0) { in handleKeyboardEvent() 129 SDL_SendKeyboardKey(SDL_PRESSED, scancode); in handleKeyboardEvent() 131 SDL_SendKeyboardKey(SDL_RELEASED, scancode); in handleKeyboardEvent()
|
/AliOS-Things-master/components/SDL2/src/video/cocoa/ |
A D | SDL_cocoakeyboard.m | 198 SDL_Scancode scancode) 220 SDL_Scancode scancode, 331 DoSidedModifiers(unsigned short scancode, 400 SDL_Scancode scancode; 429 /* Make sure this scancode is a valid character scancode */ 430 scancode = darwin_scancode_table[i]; 447 keymap[scancode] = s[0]; 545 unsigned short scancode = [event keyCode]; 551 if ((scancode == 10 || scancode == 50) && KBGetLayoutType(LMGetKbdType()) == kKeyboardISO) { 553 scancode = 60 - scancode; [all …]
|
/AliOS-Things-master/components/SDL2/src/video/winrt/ |
A D | SDL_winrtkeyboard.cpp | 259 SDL_Scancode scancode = SDL_SCANCODE_UNKNOWN; in WINRT_TranslateKeycode() local 298 scancode = WinRT_Official_Keycodes[keycode]; in WINRT_TranslateKeycode() 300 if (scancode == SDL_SCANCODE_UNKNOWN) { in WINRT_TranslateKeycode() 301 scancode = WINRT_TranslateUnofficialKeycode(keycode); in WINRT_TranslateKeycode() 303 if (scancode == SDL_SCANCODE_UNKNOWN) { in WINRT_TranslateKeycode() 305 scancode = windows_scancode_table[nativeScancode]; in WINRT_TranslateKeycode() 313 return scancode; in WINRT_TranslateKeycode()
|
/AliOS-Things-master/components/SDL2/include/ |
A D | SDL_keyboard.h | 49 SDL_Scancode scancode; /**< SDL physical key code - see ::SDL_Scancode for details */ member 99 extern DECLSPEC SDL_Keycode SDLCALL SDL_GetKeyFromScancode(SDL_Scancode scancode); 120 extern DECLSPEC const char *SDLCALL SDL_GetScancodeName(SDL_Scancode scancode);
|
/AliOS-Things-master/components/SDL2/src/video/directfb/ |
A D | SDL_DirectFB_events.c | 45 #define SDL_SendKeyboardKey_ex(id, state, scancode) SDL_SendKeyboardKey(id, state, scancode) argument 50 #define SDL_SendKeyboardKey_ex(id, state, scancode) SDL_SendKeyboardKey(state, scancode) argument 586 keysym->scancode = SDL_SCANCODE_UNKNOWN; in DirectFB_TranslateKey() 590 keysym->scancode = kbd->map[evt->key_code - kbd->map_adjust]; in DirectFB_TranslateKey() 592 if (keysym->scancode == SDL_SCANCODE_UNKNOWN || in DirectFB_TranslateKey() 595 keysym->scancode = oskeymap[evt->key_id - DIKI_UNKNOWN]; in DirectFB_TranslateKey() 597 keysym->scancode = SDL_SCANCODE_UNKNOWN; in DirectFB_TranslateKey() 617 keysym->scancode = SDL_SCANCODE_UNKNOWN; in DirectFB_TranslateKeyInputEvent() 621 keysym->scancode = kbd->map[evt->key_code - kbd->map_adjust]; in DirectFB_TranslateKeyInputEvent() 625 keysym->scancode = oskeymap[evt->key_id - DIKI_UNKNOWN]; in DirectFB_TranslateKeyInputEvent() [all …]
|
/AliOS-Things-master/components/SDL2/src/main/haiku/ |
A D | SDL_BApp.h | 289 int32 scancode, state; /* scancode, pressed/released */ in _HandleKey() local 292 msg->FindInt32("key-scancode", &scancode) != B_OK in _HandleKey() 298 if(state == SDL_PRESSED && HAIKU_GetKeyState(scancode) == SDL_PRESSED) { in _HandleKey() 301 HAIKU_SetKeyState(scancode, state); in _HandleKey() 302 SDL_SendKeyboardKey(state, HAIKU_GetScancodeFromBeKey(scancode)); in _HandleKey()
|
/AliOS-Things-master/components/SDL2/src/video/android/ |
A D | SDL_androidkeyboard.c | 328 SDL_Scancode scancode = SDL_SCANCODE_UNKNOWN; in TranslateKeycode() local 331 scancode = Android_Keycodes[keycode]; in TranslateKeycode() 333 if (scancode == SDL_SCANCODE_UNKNOWN) { in TranslateKeycode() 336 return scancode; in TranslateKeycode()
|
/AliOS-Things-master/components/SDL2/src/video/nacl/ |
A D | SDL_naclevents.c | 311 SDL_Scancode scancode = SDL_SCANCODE_UNKNOWN; in SDL_NACL_translate_keycode() local 314 scancode = NACL_Keycodes[keycode]; in SDL_NACL_translate_keycode() 316 if (scancode == SDL_SCANCODE_UNKNOWN) { in SDL_NACL_translate_keycode() 319 return scancode; in SDL_NACL_translate_keycode()
|
/AliOS-Things-master/components/SDL2/src/video/uikit/ |
A D | SDL_uikitviewcontroller.m | 304 SDL_Scancode scancode = SDL_SCANCODE_UNKNOWN; 308 scancode = SDL_SCANCODE_UP; 310 scancode = SDL_SCANCODE_DOWN; 312 scancode = SDL_SCANCODE_LEFT; 314 scancode = SDL_SCANCODE_RIGHT; 316 scancode = SDL_SCANCODE_ESCAPE; 319 if (scancode != SDL_SCANCODE_UNKNOWN) { 320 SDL_SendKeyboardKeyAutoRelease(scancode);
|
A D | SDL_uikitview.m | 415 SDL_Scancode scancode = [self scancodeFromPress:press]; 416 SDL_SendKeyboardKey(SDL_PRESSED, scancode); 424 SDL_Scancode scancode = [self scancodeFromPress:press]; 425 SDL_SendKeyboardKey(SDL_RELEASED, scancode); 433 SDL_Scancode scancode = [self scancodeFromPress:press]; 434 SDL_SendKeyboardKey(SDL_RELEASED, scancode);
|
/AliOS-Things-master/components/SDL2/src/video/windows/ |
A D | SDL_windowskeyboard.c | 115 SDL_Scancode scancode; in WIN_UpdateKeymap() local 123 scancode = windows_scancode_table[i]; in WIN_UpdateKeymap() 124 if (scancode == SDL_SCANCODE_UNKNOWN ) { in WIN_UpdateKeymap() 130 if ((keymap[scancode] & SDLK_SCANCODE_MASK) || in WIN_UpdateKeymap() 132 (scancode >= SDL_SCANCODE_1 && scancode <= SDL_SCANCODE_0) ) { in WIN_UpdateKeymap() 141 keymap[scancode] = SDLK_a + ( ch - 'A' ); in WIN_UpdateKeymap() 143 keymap[scancode] = ch; in WIN_UpdateKeymap() 170 int keycode, scancode, result, i; in WIN_ResetDeadKeys() local 175 scancode = MapVirtualKey(keycode, MAPVK_VK_TO_VSC); in WIN_ResetDeadKeys() 176 if (scancode == 0) { in WIN_ResetDeadKeys() [all …]
|
/AliOS-Things-master/components/SDL2/src/video/psp/ |
A D | SDL_pspevents.c | 94 sym.scancode = keymap_psp[i].id; in PSP_PumpEvents() 122 sym.scancode = raw; in PSP_PumpEvents()
|
/AliOS-Things-master/components/SDL2/src/core/linux/ |
A D | SDL_evdev.c | 447 SDL_Scancode scancode = SDL_SCANCODE_UNKNOWN; in SDL_EVDEV_translate_keycode() local 450 scancode = linux_scancode_table[keycode]; in SDL_EVDEV_translate_keycode() 452 if (scancode == SDL_SCANCODE_UNKNOWN) { in SDL_EVDEV_translate_keycode() 465 return scancode; in SDL_EVDEV_translate_keycode()
|
/AliOS-Things-master/components/SDL2/src/video/wayland/ |
A D | SDL_waylandevents.c | 662 uint32_t scancode; in keyboard_handle_key() local 667 scancode = xfree86_scancode_table2[key]; in keyboard_handle_key() 670 if (scancode != SDL_SCANCODE_UNKNOWN) in keyboard_handle_key() 672 SDL_PRESSED : SDL_RELEASED, scancode); in keyboard_handle_key()
|
/AliOS-Things-master/components/SDL2/src/test/ |
A D | SDL_test_common.c | 1318 event->key.keysym.scancode, in SDLTest_PrintEvent() 1319 SDL_GetScancodeName(event->key.keysym.scancode), in SDLTest_PrintEvent() 1325 event->key.keysym.scancode, in SDLTest_PrintEvent() 1326 SDL_GetScancodeName(event->key.keysym.scancode), in SDLTest_PrintEvent()
|