Home
last modified time | relevance | path

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

12

/third_party/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()
Dinput.c42 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()
Dx11_window.c200 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()
Dinternal.h544 const char* _glfwPlatformGetKeyName(int key, int scancode);
871 void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods);
/third_party/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()
Dtimeout.c43 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dicon.c92 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dclipboard.c54 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dmsaa.c50 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dempty.c62 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dwindows.c70 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dreopen.c58 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dgamma.c67 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dtearing.c81 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dsharing.c47 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dmonitors.c79 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/
Dimgui_impl_glfw.h39 IMGUI_IMPL_API void ImGui_ImplGlfw_KeyCallback(GLFWwindow* window, int key, int scancode, int a…
Dimgui_impl_glfw.cpp139 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/
Dsimple.c69 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
Dboing.c53 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/
DX11Window.cpp23 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/
Dinput.h118 __u8 scancode[32]; member

12