Home
last modified time | relevance | path

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

/AliOS-Things-master/components/SDL2/src/events/
A DSDL_keyboard.c580 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 DSDL_keyboard_c.h45 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 DSDL_events.c192 (uint) event->key.keysym.scancode, \ in SDL_LogEvent()
/AliOS-Things-master/components/SDL2/test/
A Dtestautomation_keyboard.c229 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 Dtestkeys.c25 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 Dcheckkeys.c120 sym->scancode, in PrintKey()
121 SDL_GetScancodeName(sym->scancode), in PrintKey()
126 sym->scancode, in PrintKey()
127 SDL_GetScancodeName(sym->scancode), in PrintKey()
A Dtestime.c758 event.key.keysym.scancode, in main()
759 SDL_GetScancodeName(event.key.keysym.scancode), in main()
/AliOS-Things-master/components/SDL2/src/video/x11/
A DSDL_x11keyboard.c43 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 DSDL_x11events.c379 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 DSDL_emscriptenevents.c480 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 Dkeyboard.c102 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 DSDL_cocoakeyboard.m198 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 DSDL_winrtkeyboard.cpp259 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 DSDL_keyboard.h49 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 DSDL_DirectFB_events.c45 #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 DSDL_BApp.h289 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 DSDL_androidkeyboard.c328 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 DSDL_naclevents.c311 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 DSDL_uikitviewcontroller.m304 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 DSDL_uikitview.m415 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 DSDL_windowskeyboard.c115 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 DSDL_pspevents.c94 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 DSDL_evdev.c447 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 DSDL_waylandevents.c662 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 DSDL_test_common.c1318 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()

Completed in 48 milliseconds