mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
mobile/ebitenmobileview: Fix error messages
This commit is contained in:
parent
f835c8ce7f
commit
cdc285b16f
@ -30,10 +30,10 @@ var (
|
||||
|
||||
func update() error {
|
||||
if chError == nil {
|
||||
return errors.New("mobile: chError must not be nil: Start is not called yet?")
|
||||
return errors.New("ebitenmobileview: chError must not be nil: Start is not called yet?")
|
||||
}
|
||||
if !running {
|
||||
return errors.New("mobile: start must be called ahead of update")
|
||||
return errors.New("ebitenmobileview: start must be called ahead of update")
|
||||
}
|
||||
|
||||
select {
|
||||
|
@ -26,5 +26,5 @@ func updateTouchesOnAndroid(action int, id int, x, y int) {
|
||||
}
|
||||
|
||||
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||
panic("mobile: updateTouchesOnIOSImpl must not be called on Android")
|
||||
panic("ebitenmobileview: updateTouchesOnIOSImpl must not be called on Android")
|
||||
}
|
||||
|
@ -44,7 +44,7 @@ func getIDFromPtr(ptr int64) int {
|
||||
}
|
||||
|
||||
func updateTouchesOnAndroid(action int, id int, x, y int) {
|
||||
panic("mobile: updateTouchesOnAndroid must not be called on iOS")
|
||||
panic("ebitenmobileview: updateTouchesOnAndroid must not be called on iOS")
|
||||
}
|
||||
|
||||
func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||
@ -59,6 +59,6 @@ func updateTouchesOnIOSImpl(phase int, ptr int64, x, y int) {
|
||||
delete(touches, id)
|
||||
updateTouches()
|
||||
default:
|
||||
panic(fmt.Sprintf("mobile: invalid phase: %d", phase))
|
||||
panic(fmt.Sprintf("ebitenmobileview: invalid phase: %d", phase))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user