mirror of
https://github.com/libretro/go-nanoarch.git
synced 2024-11-23 16:29:45 +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