Home
last modified time | relevance | path

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

123

/third_party/eudev/src/udev/
H A 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/glfw/src/
H A Dwin32_init.c200 int scancode; in createKeyTables() local
327 for (scancode = 0; scancode < 512; scancode++) in createKeyTables()
329 if (_glfw.win32.keycodes[scancode] > 0) in createKeyTables()
330 _glfw.win32.scancodes[_glfw.win32.keycodes[scancode]] = scancode; in createKeyTables()
526 int scancode, length; in _glfwUpdateKeyNamesWin32() local
529 scancode = _glfw.win32.scancodes[key]; in _glfwUpdateKeyNamesWin32()
530 if (scancode in _glfwUpdateKeyNamesWin32()
[all...]
H A Dnull_init.c122 int scancode; in _glfwInitNull() local
248 for (scancode = GLFW_NULL_SC_FIRST; scancode < GLFW_NULL_SC_LAST; scancode++) in _glfwInitNull()
250 if (_glfw.null.keycodes[scancode] > 0) in _glfwInitNull()
251 _glfw.null.scancodes[_glfw.null.keycodes[scancode]] = scancode; in _glfwInitNull()
H A Dwin32_window.c712 int key, scancode; in windowProc() local
716 scancode = (HIWORD(lParam) & (KF_EXTENDED | 0xff)); in windowProc()
717 if (!scancode) in windowProc()
719 // NOTE: Some synthetic key messages have a scancode of zero in windowProc()
720 // HACK: Map the virtual key back to a usable scancode in windowProc()
721 scancode = MapVirtualKeyW((UINT) wParam, MAPVK_VK_TO_VSC); in windowProc()
724 // HACK: Alt+PrtSc has a different scancode than just PrtSc in windowProc()
725 if (scancode == 0x54) in windowProc()
726 scancode = 0x137; in windowProc()
728 // HACK: Ctrl+Pause has a different scancode tha in windowProc()
2156 const int scancode = _glfw.win32.scancodes[key]; _glfwPollEventsWin32() local
2270 _glfwGetScancodeNameWin32(int scancode) _glfwGetScancodeNameWin32() argument
[all...]
H A Dnull_window.c572 const char* _glfwGetScancodeNameNull(int scancode) in _glfwGetScancodeNameNull() argument
574 if (scancode < GLFW_NULL_SC_FIRST || scancode > GLFW_NULL_SC_LAST) in _glfwGetScancodeNameNull()
576 _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode); in _glfwGetScancodeNameNull()
580 switch (scancode) in _glfwGetScancodeNameNull()
H A Dx11_init.c361 for (int scancode = scancodeMin; scancode <= scancodeMax; scancode++) in createKeyTables()
371 if (strncmp(desc->names->keys[scancode].name, in createKeyTables()
387 desc->names->keys[scancode].name, in createKeyTables()
405 _glfw.x11.keycodes[scancode] = key; in createKeyTables()
420 for (int scancode = scancodeMin; scancode <= scancodeMax; scancode++) in createKeyTables()
424 if (_glfw.x11.keycodes[scancode] < in createKeyTables()
[all...]
H A Dwl_window.c1159 static int translateKey(uint32_t scancode) in translateKey() argument
1161 if (scancode < sizeof(_glfw.wl.keycodes) / sizeof(_glfw.wl.keycodes[0])) in translateKey()
1162 return _glfw.wl.keycodes[scancode]; in translateKey()
1187 static void inputText(_GLFWwindow* window, uint32_t scancode) in inputText() argument
1190 const xkb_keycode_t keycode = scancode + 8; in inputText()
1769 uint32_t scancode, in keyboardHandleKey()
1776 const int key = translateKey(scancode); in keyboardHandleKey()
1786 const xkb_keycode_t keycode = scancode + 8; in keyboardHandleKey()
1791 _glfw.wl.keyRepeatScancode = scancode; in keyboardHandleKey()
1804 _glfwInputKey(window, key, scancode, actio in keyboardHandleKey()
1765 keyboardHandleKey(void* userData, struct wl_keyboard* keyboard, uint32_t serial, uint32_t time, uint32_t scancode, uint32_t state) keyboardHandleKey() argument
2687 _glfwGetScancodeNameWayland(int scancode) _glfwGetScancodeNameWayland() argument
[all...]
H A Dx11_window.c238 static int translateKey(int scancode) in translateKey() argument
241 if (scancode < 0 || scancode > 255) in translateKey()
244 return _glfw.x11.keycodes[scancode]; in translateKey()
1151 // HACK: Save scancode as some IMs clear the field in XFilterEvent in processEvent()
2901 const char* _glfwGetScancodeNameX11(int scancode) in _glfwGetScancodeNameX11() argument
2906 if (scancode < 0 || scancode > 0xff) in _glfwGetScancodeNameX11()
2908 _glfwInputError(GLFW_INVALID_VALUE, "Invalid scancode %i", scancode); in _glfwGetScancodeNameX11()
[all...]
H A Dinput.c272 void _glfwInputKey(_GLFWwindow* window, int key, int scancode, int action, int mods) in _glfwInputKey() argument
303 window->callbacks.key((GLFWwindow*) window, key, scancode, action, mods); in _glfwInputKey()
707 GLFWAPI const char* glfwGetKeyName(int key, int scancode) in glfwGetKeyName() argument
726 scancode = _glfw.platform.getKeyScancode(key); in glfwGetKeyName()
729 return _glfw.platform.getScancodeName(scancode); in glfwGetKeyName()
/third_party/glfw/tests/
H A Devents.c400 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
408 get_key_name(key), scancode, in key_callback()
414 const char* name = glfwGetKeyName(key, scancode); in key_callback()
419 key, get_key_name(key), scancode, name, in key_callback()
427 key, get_key_name(key), scancode, in key_callback()
H A Dtimeout.c45 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dempty.c64 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dclipboard.c56 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dicon.c94 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dmsaa.c78 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dthreads.c57 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dgamma.c58 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dtearing.c97 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dreopen.c81 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
/third_party/glfw/examples/
H A Dtriangle-opengl.c77 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dtriangle-opengles.c77 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dsharing.c70 static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) in key_callback() argument
H A Dboing.c55 void key_callback( GLFWwindow* window, int key, int scancode, int action, int mods );
240 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/
H 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/skia/third_party/externals/angle2/util/x11/
H A DX11Window.cpp23 static Key X11CodeToKey(Display *display, unsigned int scancode) in X11CodeToKey() argument
27 keySymbols = XGetKeyboardMapping(display, scancode, 1, &temp); in X11CodeToKey()

Completed in 32 milliseconds

123