From 583fc07f3a5acea67f8bfc026967f43bea0bd647 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 29 May 2016 22:15:28 +0900 Subject: [PATCH] input: Fix compile error --- internal/ui/input.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]