internal/glfwwin: bug fix: MapVirtualKeyW is not defined on Xbox

This commit is contained in:
Hajime Hoshi 2022-12-29 00:53:03 +09:00
parent 7736161d8d
commit cba6905c57

View File

@ -152,6 +152,11 @@ func createKeyTables() {
}
func updateKeyNamesWin32() {
// MapVirtualKeyW is not implemented in Xbox.
if microsoftgdk.IsXbox() {
return
}
for i := range _glfw.win32.keynames {
_glfw.win32.keynames[i] = ""
}