Hajime Hoshi
1dd0c22510
mobile/ebitenmobileview: Bug fix: Wrong key names
2020-02-22 13:45:01 +09:00
Hajime Hoshi
cd4cb435f2
keys: Refactoring: Rename and reverse a map (androidKeyToDriverKeyName)
2020-02-22 03:28:59 +09:00
Hajime Hoshi
5b7151595b
mobile/ebitenmobileview: Handle keyboard keys on Android (ebitenmobile)
...
Updates #237
2020-02-20 01:53:51 +09:00
Hajime Hoshi
db2c4dc260
mobile/ebitenmobile: Rename functions
...
This is a preparation for other input devices.
Updates #237
2020-02-19 01:51:05 +09:00
Hajime Hoshi
e20cbac8d8
mobile/ebitenmobileview: Rename files
2020-02-19 00:48:57 +09:00
Hajime Hoshi
d59aea1db1
driver: Remove the return value from RunWithoutMainLoop
2020-02-11 23:56:53 +09:00
Hajime Hoshi
aef4b4ba53
uidriver/mobile: Refactoring: Give a default outside size
2020-02-11 23:29:52 +09:00
Hajime Hoshi
d0fce2a2db
mobile/ebitenmobileview: Refactoring
2020-02-11 22:43:00 +09:00
Hajime Hoshi
c927d33457
mobile/ebitenmobileview: Use the common uiContext for layouting
...
This means that the whole offscreen is cleared correctly.
This change is a little breaking change: SetScreenSize or other
functions no longer works on ebitenmobile. Use Layout instead.
Fixes #1019
2020-02-11 19:40:47 +09:00
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
4fd39f258a
mobile: Remove game definition and use ebiten.Game
2020-01-13 17:04:06 +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
b5d8be96a6
mobile: Move Game definition to package ebiten
...
Updates #943
2019-11-25 00:49:13 +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
8243c1838a
docs: Update the links
2019-11-19 01:59:36 +09:00
Hajime Hoshi
d7a9193e52
mobile: Enable to compile in non-mobile environments
...
This was necessary to show API documents on godoc.org and
pkg.go.dev.
2019-11-18 02:18:13 +09:00
Hajime Hoshi
c6cc298e0d
mobile: Exclude non-mobile environments to build
2019-11-18 02:05:51 +09:00
Hajime Hoshi
725cc22200
uidriver/mobile: Rename Render -> Update
2019-11-17 21:52:06 +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
12d0f273ec
mobile/ebitenmobileview: Allow to call update before start
...
This fixes an issue that Update on another thread returns error
when SetGame is not called. As SetGame is permitted to be called
later, Update should not return error.
2019-10-11 22:14:19 +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
9bb96a4012
mobile: Fix comments at SetGame
2019-09-27 11:28:48 +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
b8afa2f9c6
mobile/ebitenmobileview: Add a dummy file for non-mobile environments
2019-09-18 10:52:59 +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
876e61dd98
Fix documentations
2019-08-18 18:33:51 +09:00
Hajime Hoshi
f5a514646d
mobile: Fix comments about deprecation
2019-08-18 18:03:53 +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
Hajime Hoshi
424474f486
mobile: Fix comments
2019-08-17 17:52:58 +09:00
Hajime Hoshi
e6e0e61215
mobile/ebitenmobileview: Add EbitenViewController for iOS
...
This is still work in progress.
Updates #863
2019-08-17 17:40:26 +09:00
Hajime Hoshi
cdc285b16f
mobile/ebitenmobileview: Fix error messages
2019-08-15 03:27:26 +09:00
Hajime Hoshi
de49bbab12
mobile: Replace SetUpdateFunc with Set
2019-08-11 21:55:05 +09:00
Hajime Hoshi
2925fc718b
mobile/ebitenmobileview: Remove 'title' argument from Run
2019-08-11 21:07:07 +09:00
Hajime Hoshi
c93075d1dc
Add ebitenmobileview package for internal usage
...
This is a preparation for the ebitenmobile command.
2019-08-11 16:32:40 +09:00
Hajime Hoshi
7f15013014
mobile: Unify the empty implementation into one file
2019-06-27 01:44:53 +09:00
Hajime Hoshi
a19bf4214b
Improve testability on Wasm
2019-06-14 23:59:38 +09:00
Hajime Hoshi
42cf9d1750
mobile: Lock the OS thread before using mutex
...
As switching the OS thread by mutex could theoretically happen
(I think this is almost 0% in Ebiten's case), locking the OS
thread should happen before the mutex.
2019-06-08 02:00:40 +09:00
Hajime Hoshi
fa377ce9d1
mobile: Refactoring
2019-06-08 01:57:13 +09:00
Hajime Hoshi
099c7bd5c9
driver: Remove Touch struct
2019-04-07 19:25:10 -04:00
Hajime Hoshi
26c32d36b5
uidriver: Move input implementation to uidrivers
2019-04-07 19:16:00 +09:00
Hajime Hoshi
7e5085f15b
Add uidriver package and move UI implementation to this packaage
2019-04-07 18:21:16 +09:00