mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-09 17:43:18 +01:00
mobile: Better panic messages
This commit is contained in:
parent
ba47a19b17
commit
b24713749b
@ -26,5 +26,5 @@ func updateTouchesOnAndroid(action int, id int, x, y int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||||
panic("not reach")
|
panic("mobile: updateTouchesOnIOSImpl must not be called on Android")
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ func getIDFromPtr(ptr int64) int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func updateTouchesOnAndroid(action int, id int, x, y int) {
|
func updateTouchesOnAndroid(action int, id int, x, y int) {
|
||||||
panic("not reach")
|
panic("mobile: updateTouchesOnAndroid must not be called on iOS")
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||||
@ -55,6 +55,6 @@ func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
|||||||
delete(touches, id)
|
delete(touches, id)
|
||||||
updateTouches()
|
updateTouches()
|
||||||
default:
|
default:
|
||||||
panic("not reach")
|
panic("not reached")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user