Home
last modified time | relevance | path

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

1234

/third_party/flutter/skia/third_party/externals/sdl/test/
Dtestautomation_keyboard.c229 SDL_Scancode scancode; in keyboard_getScancodeNameNegative() local
238 scancode = (SDL_Scancode)SDL_NUM_SCANCODES; in keyboard_getScancodeNameNegative()
239 result = (char *)SDL_GetScancodeName(scancode); in keyboard_getScancodeNameNegative()
240 SDLTest_AssertPass("Call to SDL_GetScancodeName(%d/large)", scancode); in keyboard_getScancodeNameNegative()
520 SDL_Scancode scancode; in keyboard_getScancodeFromKey() local
523 scancode = SDL_GetScancodeFromKey(SDLK_4); in keyboard_getScancodeFromKey()
525 …AssertCheck(scancode == SDL_SCANCODE_4, "Validate return value from SDL_GetScancodeFromKey, expect… in keyboard_getScancodeFromKey()
528 scancode = SDL_GetScancodeFromKey(SDLK_PLUS); in keyboard_getScancodeFromKey()
530 …SDLTest_AssertCheck(scancode == 0, "Validate return value from SDL_GetScancodeFromKey, expected: 0… in keyboard_getScancodeFromKey()
544 SDL_Scancode scancode; in keyboard_getScancodeFromName() local
[all …]
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()
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()
/third_party/flutter/skia/third_party/externals/sdl/src/events/
DSDL_keyboard.c567 SDL_Scancode scancode; in SDL_ResetKeyboard() local
572 for (scancode = 0; scancode < SDL_NUM_SCANCODES; ++scancode) { in SDL_ResetKeyboard()
573 if (keyboard->keystate[scancode] == SDL_PRESSED) { in SDL_ResetKeyboard()
574 SDL_SendKeyboardKey(SDL_RELEASED, scancode); in SDL_ResetKeyboard()
598 SDL_SetScancodeName(SDL_Scancode scancode, const char *name) in SDL_SetScancodeName() argument
600 SDL_scancode_names[scancode] = name; in SDL_SetScancodeName()
661 SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode) in SDL_SendKeyboardKey() argument
671 if (!scancode) { in SDL_SendKeyboardKey()
675 printf("The '%s' key has been %s\n", SDL_GetScancodeName(scancode), in SDL_SendKeyboardKey()
693 repeat = (state && keyboard->keystate[scancode]); in SDL_SendKeyboardKey()
[all …]
DSDL_keyboard_c.h45 extern void SDL_SetScancodeName(SDL_Scancode scancode, const char *name);
51 extern int SDL_SendKeyboardKey(Uint8 state, SDL_Scancode scancode);
/third_party/flutter/skia/third_party/externals/sdl/src/video/x11/
DSDL_x11keyboard.c39 SDL_Scancode scancode; member
189 return KeySymToSDLScancode[i].scancode; in X11_KeyCodeToSDLScancode()
251 SDL_Scancode scancode; in X11_InitKeyboard() member
297 } else if (scancode_set[i].table[fingerprint[j].value] != fingerprint[j].scancode) { in X11_InitKeyboard()
324 SDL_Scancode scancode; in X11_InitKeyboard() local
327 scancode = X11_KeyCodeToSDLScancode(_this, i); in X11_InitKeyboard()
328 data->key_layout[i] = scancode; in X11_InitKeyboard()
329 if (scancode == SDL_SCANCODE_UNKNOWN) { in X11_InitKeyboard()
332 printf("scancode = %d (%s)\n", scancode, SDL_GetScancodeName(scancode)); in X11_InitKeyboard()
354 SDL_Scancode scancode; in X11_UpdateKeymap() local
[all …]
/third_party/flutter/skia/third_party/externals/sdl/Xcode-iOS/Demos/src/
Dkeyboard.c31 SDL_Scancode scancode; /* scancode of the key we want to map */ member
115 if (key.scancode == compare.scancode) { in keyToIndex()
238 SDL_Scancode scancode; /* scancode of last key we pushed */ in main() local
270 scancode = event.key.keysym.scancode; in main()
272 if (scancode == SDL_SCANCODE_DELETE) { in main()
276 } else if (lastCharWasColon && scancode == SDL_SCANCODE_0 in main()
290 (event.key.keysym.scancode == SDL_SCANCODE_SEMICOLON in main()
/third_party/flutter/glfw/src/
Dx11_init.c41 static int translateKeyCode(int scancode) in translateKeyCode() argument
46 if (scancode < 8 || scancode > 255) in translateKeyCode()
55 keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 1); in translateKeyCode()
77 keySym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); in translateKeyCode()
84 keySyms = XGetKeyboardMapping(_glfw.x11.display, scancode, 1, &dummy); in translateKeyCode()
233 int scancode, key; in createKeyTables() local
248 for (scancode = desc->min_key_code; scancode <= desc->max_key_code; scancode++) in createKeyTables()
250 memcpy(name, desc->names->keys[scancode].name, XkbKeyNameLength); in createKeyTables()
307 if ((scancode >= 0) && (scancode < 256)) in createKeyTables()
308 _glfw.x11.publicKeys[scancode] = key; in createKeyTables()
[all …]
Dwin32_init.c169 int scancode; in createKeyTables() local
296 for (scancode = 0; scancode < 512; scancode++) in createKeyTables()
298 if (_glfw.win32.publicKeys[scancode] > 0) in createKeyTables()
299 _glfw.win32.nativeKeys[_glfw.win32.publicKeys[scancode]] = scancode; in createKeyTables()
Dcocoa_init.m75 int scancode;
195 for (scancode = 0; scancode < 256; scancode++)
198 if (_glfw.ns.publicKeys[scancode] >= 0)
199 _glfw.ns.nativeKeys[_glfw.ns.publicKeys[scancode]] = scancode;
Dwin32_window.c546 const int scancode = (lParam >> 16) & 0x1ff; in windowProc() local
557 _glfwInputKey(window, GLFW_KEY_LEFT_SHIFT, scancode, action, mods); in windowProc()
558 _glfwInputKey(window, GLFW_KEY_RIGHT_SHIFT, scancode, action, mods); in windowProc()
563 _glfwInputKey(window, key, scancode, GLFW_PRESS, mods); in windowProc()
564 _glfwInputKey(window, key, scancode, GLFW_RELEASE, mods); in windowProc()
567 _glfwInputKey(window, key, scancode, action, mods); in windowProc()
1490 const char* _glfwPlatformGetKeyName(int key, int scancode) in _glfwPlatformGetKeyName() argument
1495 scancode = _glfw.win32.nativeKeys[key]; in _glfwPlatformGetKeyName()
1497 if (!_glfwIsPrintable(_glfw.win32.publicKeys[scancode])) in _glfwPlatformGetKeyName()
1500 if (!GetKeyNameTextW(scancode << 16, name, sizeof(name) / sizeof(WCHAR))) in _glfwPlatformGetKeyName()
/third_party/flutter/skia/third_party/externals/sdl/src/video/cocoa/
DSDL_cocoakeyboard.m305 SDL_Scancode scancode)
316 SDL_SendKeyboardKey(SDL_RELEASED, scancode);
318 SDL_SendKeyboardKey(SDL_PRESSED, scancode);
327 SDL_Scancode scancode,
343 SDL_SendKeyboardKey(SDL_PRESSED, scancode);
345 SDL_SendKeyboardKey(SDL_RELEASED, scancode);
438 DoSidedModifiers(unsigned short scancode,
489 HandleModifiers(_THIS, unsigned short scancode, unsigned int modifierFlags)
497 DoSidedModifiers(scancode, data->modifierFlags, modifierFlags);
507 SDL_Scancode scancode;
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/video/winrt/
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()
/third_party/eudev/src/udev/
Dudev-builtin-keyboard.c68 static void map_keycode(int fd, const char *devnode, int scancode, const char *keycode) in map_keycode() argument
91 map.scan = scancode; in map_keycode()
208 unsigned scancode; in builtin_keyboard() local
211 scancode = strtoul(key + 13, &endptr, 16); in builtin_keyboard()
223 release[release_count] = scancode; in builtin_keyboard()
237 map_keycode(fd, node, scancode, keycode); in builtin_keyboard()
/third_party/flutter/skia/third_party/externals/sdl/src/video/directfb/
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
237 SDL_SendKeyboardKey_ex(0, SDL_PRESSED, keysym.scancode); in ProcessWindowEvent()
250 SDL_SendKeyboardKey_ex(0, SDL_RELEASED, keysym.scancode); in ProcessWindowEvent()
373 SDL_SendKeyboardKey_ex(kbd_idx, SDL_PRESSED, keysym.scancode); in ProcessInputEvent()
385 SDL_SendKeyboardKey_ex(kbd_idx, SDL_RELEASED, keysym.scancode); in ProcessInputEvent()
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()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/include/
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);
/third_party/flutter/skia/third_party/externals/sdl/src/video/emscripten/
DSDL_emscriptenevents.c474 Uint32 scancode; in Emscripten_HandleKey() local
478 scancode = emscripten_scancode_table[keyEvent->keyCode]; in Emscripten_HandleKey()
480 if (scancode != SDL_SCANCODE_UNKNOWN) { in Emscripten_HandleKey()
483 switch (scancode) { in Emscripten_HandleKey()
485 scancode = SDL_SCANCODE_RSHIFT; in Emscripten_HandleKey()
488 scancode = SDL_SCANCODE_RCTRL; in Emscripten_HandleKey()
491 scancode = SDL_SCANCODE_RALT; in Emscripten_HandleKey()
494 scancode = SDL_SCANCODE_RGUI; in Emscripten_HandleKey()
498 … SDL_SendKeyboardKey(eventType == EMSCRIPTEN_EVENT_KEYDOWN ? SDL_PRESSED : SDL_RELEASED, scancode); in Emscripten_HandleKey()
/third_party/flutter/skia/third_party/externals/sdl/src/main/haiku/
DSDL_BApp.h262 int32 scancode, state; /* scancode, pressed/released */ in _HandleKey() local
265 msg->FindInt32("key-scancode", &scancode) != B_OK in _HandleKey()
271 if(state == SDL_PRESSED && BE_GetKeyState(scancode) == SDL_PRESSED) { in _HandleKey()
274 BE_SetKeyState(scancode, state); in _HandleKey()
275 SDL_SendKeyboardKey(state, BE_GetScancodeFromBeKey(scancode)); in _HandleKey()
/third_party/flutter/skia/third_party/externals/sdl/src/video/android/
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()
/third_party/flutter/skia/third_party/externals/sdl/src/video/nacl/
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()
/third_party/flutter/skia/third_party/externals/sdl/src/video/uikit/
DSDL_uikitview.m233 SDL_Scancode scancode = [self scancodeFromPressType:press.type];
234 SDL_SendKeyboardKey(SDL_PRESSED, scancode);
243 SDL_Scancode scancode = [self scancodeFromPressType:press.type];
244 SDL_SendKeyboardKey(SDL_RELEASED, scancode);
253 SDL_Scancode scancode = [self scancodeFromPressType:press.type];
254 SDL_SendKeyboardKey(SDL_RELEASED, scancode);
/third_party/flutter/engine/flutter/shell/platform/windows/
Dwin32_flutter_window.cc145 void Win32FlutterWindow::OnKey(int key, int scancode, int action, int mods) { in OnKey() argument
147 SendKey(key, scancode, action, 0); in OnKey()
241 void Win32FlutterWindow::SendKey(int key, int scancode, int action, int mods) { in SendKey() argument
243 handler->KeyboardHook(this, key, scancode, action, mods); in SendKey()
Dwin32_flutter_window.h69 void OnKey(int key, int scancode, int action, int mods) override;
117 void SendKey(int key, int scancode, int action, int mods);
Dwin32_window.cc169 unsigned char scancode = ((unsigned char*)&lparam)[2]; in MessageHandler() local
170 unsigned int virtualKey = MapVirtualKey(scancode, MAPVK_VSC_TO_VK); in MessageHandler()
173 window->OnKey(key, scancode, action, 0); in MessageHandler()
/third_party/flutter/glfw/tests/
Devents.c360 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
363 const char* name = glfwGetKeyName(key, scancode); in key_callback()
368 counter++, slot->number, glfwGetTime(), key, scancode, in key_callback()
377 counter++, slot->number, glfwGetTime(), key, scancode, in key_callback()

1234