input: Fix compile error

This commit is contained in:
Hajime Hoshi 2016-05-29 22:15:28 +09:00
parent 05104744d3
commit 583fc07f3a

View File

@ -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]