Removed a TODO from area_windows.go after verifying that what it flagged (GetKeyState() vs. GetAsyncKeyState()) is indeed what we want to do (the former).
This commit is contained in:
parent
4ede7d497d
commit
fb8e64cb5a
|
@ -421,7 +421,7 @@ var (
|
||||||
|
|
||||||
func getModifiers() (m Modifiers) {
|
func getModifiers() (m Modifiers) {
|
||||||
down := func(x uintptr) bool {
|
down := func(x uintptr) bool {
|
||||||
// TODO this might not be related to the actual message; GLFW does it
|
// GetKeyState() gets the key state at the time of the message, so this is what we want
|
||||||
r1, _, _ := _getKeyState.Call(x)
|
r1, _, _ := _getKeyState.Call(x)
|
||||||
return (r1 & 0x80) != 0
|
return (r1 & 0x80) != 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue