mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Go 1.22+fix input bug
This commit is contained in:
@ -39,6 +39,14 @@ func (w *Window) handleInputs() {
|
||||
imguiCaptureMouse := imIo.WantCaptureMouse()
|
||||
imguiCaptureKeyboard := imIo.WantCaptureKeyboard()
|
||||
|
||||
if imguiCaptureMouse {
|
||||
input.ClearMouseState()
|
||||
}
|
||||
|
||||
if imguiCaptureKeyboard {
|
||||
input.ClearKeyboardState()
|
||||
}
|
||||
|
||||
for event := sdl.PollEvent(); event != nil; event = sdl.PollEvent() {
|
||||
|
||||
//Fire callbacks
|
||||
|
||||
Reference in New Issue
Block a user