ebiten: Refactoring: Stop using TouchIDs in TouchPosition

This commit is contained in:
Hajime Hoshi 2021-07-10 01:38:54 +09:00
parent 853c1f2b92
commit 26bb1b5f31

View File

@ -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)
}