/third_party/glfw/src/ |
D | x11_init.c | 41 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 …]
|
D | win32_init.c | 169 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()
|
D | cocoa_init.m | 75 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;
|
D | win32_window.c | 546 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()
|
D | input.c | 42 void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods) in _glfwInputKey() argument 64 window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods); in _glfwInputKey() 253 GLFWAPI const char* glfwGetKeyName(int key, int scancode) in glfwGetKeyName() argument 256 return _glfwPlatformGetKeyName(key, scancode); in glfwGetKeyName()
|
D | x11_window.c | 200 static int translateKey(int scancode) in translateKey() argument 203 if (scancode < 0 || scancode > 255) in translateKey() 206 return _glfw.x11.publicKeys[scancode]; in translateKey() 2158 const char* _glfwPlatformGetKeyName(int key, int scancode) in _glfwPlatformGetKeyName() argument 2167 scancode = _glfw.x11.nativeKeys[key]; in _glfwPlatformGetKeyName() 2169 if (!_glfwIsPrintable(_glfw.x11.publicKeys[scancode])) in _glfwPlatformGetKeyName() 2172 keysym = XkbKeycodeToKeysym(_glfw.x11.display, scancode, 0, 0); in _glfwPlatformGetKeyName()
|
D | internal.h | 544 const char* _glfwPlatformGetKeyName(int key, int scancode); 871 void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods);
|
/third_party/glfw/tests/ |
D | events.c | 360 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()
|
D | timeout.c | 43 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | icon.c | 92 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | clipboard.c | 54 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | msaa.c | 50 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | empty.c | 62 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | windows.c | 70 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | reopen.c | 58 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | gamma.c | 67 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | tearing.c | 81 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | sharing.c | 47 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | monitors.c | 79 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
/third_party/skia/third_party/externals/imgui/backends/ |
D | imgui_impl_glfw.h | 39 IMGUI_IMPL_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int a…
|
D | imgui_impl_glfw.cpp | 139 void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int action, int mods) in ImGui_ImplGlfw_KeyCallback() argument 143 bd->PrevUserCallbackKey(window, key, scancode, action, mods); in ImGui_ImplGlfw_KeyCallback()
|
/third_party/glfw/examples/ |
D | simple.c | 69 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
|
D | boing.c | 53 void key_callback( GLFWwindow* window, int key, int scancode, int action, int mods ); 238 void key_callback( GLFWwindow* window, int key, int scancode, int action, int mods ) in key_callback() argument
|
/third_party/skia/third_party/externals/angle2/util/x11/ |
D | X11Window.cpp | 23 static Key X11CodeToKey(Display *display, unsigned int scancode) in X11CodeToKey() argument 27 keySymbols = XGetKeyboardMapping(display, scancode, 1, &temp); in X11CodeToKey()
|
/third_party/libevdev/include/linux/linux/ |
D | input.h | 118 __u8 scancode[32]; member
|