mirror of
https://github.com/libretro/go-nanoarch.git
synced 2024-11-23 08:19:42 +00:00
commit
2d6cac677d
@ -247,6 +247,11 @@ func coreInputPoll() {
|
||||
for k, v := range binds {
|
||||
joy[v] = (window.GetKey(k) == glfw.Press)
|
||||
}
|
||||
|
||||
// Close the window when the user hits the Escape key.
|
||||
if (window.GetKey(glfw.KeyEscape) == glfw.Press) {
|
||||
window.SetShouldClose(true)
|
||||
}
|
||||
}
|
||||
|
||||
//export coreInputState
|
||||
|
Loading…
Reference in New Issue
Block a user