Commit Graph

18 Commits

Author SHA1 Message Date
Hajime Hoshi
1b4c9f4e4d uidriver/mobile: Remove impl.go 2020-02-11 14:50:55 +09:00
Hajime Hoshi
a303487328 uidriver/mobile: Add comments 2020-02-11 14:45:50 +09:00
Hajime Hoshi
802693fa20 uidriver/mobile: Implement IsForeground
This adds hooks on resuming/suspending the application, and
switches the foreground state there. This change also updates
the logic to suspend the game loop to be clearer.

Fixes #1037
2020-01-23 02:08:31 +09:00
Hajime Hoshi
bda11b0e17 driver: Add UI.SetWindowSize and UIContext.Layout
This is a preparation to introduce RunGame function.

Updates # 943 (Fix this line before committing)
2019-12-15 02:29:43 +09:00
Hajime Hoshi
8f08565488 mobile/ebitenmobileview: Use uidriver.mobile's functions
This is a preparation to deprecate SetScreenSize and
SetScreenScale.
2019-11-24 23:52:41 +09:00
Hajime Hoshi
c6cc298e0d mobile: Exclude non-mobile environments to build 2019-11-18 02:05:51 +09:00
Hajime Hoshi
bf07ead6ae mobile/ebitenmobileview: Bug fix: Use Math.floor to shrink the size a little bit
Fixes #956
2019-10-17 12:21:06 +09:00
Hajime Hoshi
d488fd7fcb mobile/ebitenmobileview: Refactoring: touches 2019-10-11 23:12:05 +09:00
Hajime Hoshi
5973833274 mobile/ebitenmobileview: Refactoring 2019-10-11 22:49:28 +09:00
Hajime Hoshi
01cb6e67b8 mobile/ebitenmobileview: Bug fix: Compile error on Android 2019-10-09 23:03:22 +09:00
Hajime Hoshi
3c976eae02 cmd/ebitenmobile: Use Metal on iOS
The emulators still use OpenGL.

Fixes #737
2019-10-09 02:13:47 +09:00
Hajime Hoshi
c24b43099b mobile/ebitenmobileview: Allow Layout without SetGame 2019-09-23 16:54:33 +09:00
Hajime Hoshi
dfb89e13e3 mobile/ebitenmobileview: Fix error messages 2019-09-23 15:55:31 +09:00
Hajime Hoshi
d2d21b3a01 mobile/ebitenmobileview: Fix build errors 2019-09-18 11:01:58 +09:00
Hajime Hoshi
439599a145 mobile/ebitenmobileview: Bug fix: ebitenmobile should be ignored on non-mobile platforms 2019-09-18 10:46:35 +09:00
Hajime Hoshi
c648b40e20 mobile/ebitenmobile: Implement setScreenSize
This change also fixes the bug that Android froze when the view
size is changed.

Fixes #934
2019-09-14 14:49:38 +09:00
Hajime Hoshi
787f2d72c0 mobile/ebitenmobileview: Bug fix: fix compile errors 2019-08-18 04:06:11 +09:00
Hajime Hoshi
9ba113861c Add ebitenmobile command
This works only for iOS so far. I'll implement Java version soon.

Updates #863
2019-08-18 03:03:01 +09:00