From 26bb1b5f3138e71021f91076c5a8c08feb8fa8ce Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 10 Jul 2021 01:38:54 +0900 Subject: [PATCH] ebiten: Refactoring: Stop using TouchIDs in TouchPosition --- input.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/input.go b/input.go index c64824163..244723829 100644 --- a/input.go +++ b/input.go @@ -207,16 +207,5 @@ func TouchIDs() []TouchID { // // TouchPosition is cuncurrent-safe. func TouchPosition(id TouchID) (int, int) { - found := false - for _, i := range uiDriver().Input().TouchIDs() { - if id == i { - found = true - break - } - } - if !found { - return 0, 0 - } - return uiDriver().Input().TouchPosition(id) }