diff --git a/internal/ui/input.go b/internal/ui/input.go index 66327d9d6..81e738e34 100644 --- a/internal/ui/input.go +++ b/internal/ui/input.go @@ -105,8 +105,8 @@ func (i *input) IsGamepadButtonPressed(id int, button GamepadButton) bool { } func (in *input) Touches() []Touch { - i.m.RLock() - defer i.m.RUnlock() + in.m.RLock() + defer in.m.RUnlock() t := make([]Touch, len(in.touches)) for i := 0; i < len(t); i++ { t[i] = &in.touches[i]