glfw: Add StickyModes to window.InputMode (resolve #314 #399) (#423)

This commit is contained in:
1l0 2017-08-28 23:29:19 +09:00 committed by Hajime Hoshi
parent dae3aac4f4
commit 5d2393c3c1

View File

@ -88,7 +88,8 @@ func initialize() error {
mode = glfw.CursorHidden
}
currentUI.window.SetInputMode(glfw.CursorMode, mode)
currentUI.window.SetInputMode(glfw.StickyMouseButtonsMode, glfw.True)
currentUI.window.SetInputMode(glfw.StickyKeysMode, glfw.True)
return nil
}