mobile/ebitenmobileview: Fix error messages

This commit is contained in:
Hajime Hoshi 2019-08-15 03:27:26 +09:00
parent f835c8ce7f
commit cdc285b16f
3 changed files with 5 additions and 5 deletions

View File

@ -30,10 +30,10 @@ var (
func update() error { func update() error {
if chError == nil { 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 { 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 { select {

View File

@ -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("mobile: updateTouchesOnIOSImpl must not be called on Android") panic("ebitenmobileview: updateTouchesOnIOSImpl must not be called on Android")
} }

View File

@ -44,7 +44,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("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) { 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) delete(touches, id)
updateTouches() updateTouches()
default: default:
panic(fmt.Sprintf("mobile: invalid phase: %d", phase)) panic(fmt.Sprintf("ebitenmobileview: invalid phase: %d", phase))
} }
} }