Commit Graph

125 Commits

Author SHA1 Message Date
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
Hajime Hoshi
de9f54fd9d driver: Add Input 2019-04-06 21:48:54 +09:00
Hajime Hoshi
c21fb4d390 input: Move Touch to driver package 2019-03-31 18:58:43 +09:00
Hajime Hoshi
64d3e26fb0 input: Rename UpdateTouches -> SetTouches 2019-03-31 16:30:03 +09:00
Hajime Hoshi
5d6f66935a ui: Remove UpdateTouches 2019-03-31 01:54:38 +09:00
Hajime Hoshi
43ec1e7fb3 input: Refactoring: Make Touch a struct 2019-03-31 01:14:49 +09:00
Hajime Hoshi
a3eddeb50f Improve panic messages 2019-02-06 23:43:03 -10:00
Hajime Hoshi
b24713749b mobile: Better panic messages 2019-01-29 11:11:54 +09:00
Hajime Hoshi
6d1342a934 mobile: Add comments when to call functions 2018-05-04 00:44:03 +09:00
Hajime Hoshi
fd43848568 mobile: Move mutex to mobile.go 2018-05-03 22:07:03 +09:00
Hajime Hoshi
7a00f0f599 mobile: Bug fix: mutex is necessary for start and update
mobile's Start and Update can be called from different threads.
Especially, on Android, this behavior is noted explicitly at
https://developer.android.com/reference/android/opengl/GLSurfaceView.Renderer
2018-05-03 22:02:49 +09:00
Hajime Hoshi
fcf4657a70 ui: Adjust touch positions at ui package (mobile) 2018-04-03 01:50:07 +09:00
Hajime Hoshi
4de2dc0240 Add input package 2018-04-01 23:20:45 +09:00
Hajime Hoshi
2110191794 mobile: Accept gomobile build (#249) 2018-03-24 02:52:42 +09:00
Hajime Hoshi
3cf5ca4df3 doc: Improve comments 2017-10-08 03:14:33 +09:00
Hajime Hoshi
d1333e92a5 doc: Improve comments 2017-10-01 20:48:28 +09:00
Hajime Hoshi
fd71c86e20 mobile: Throw error when update is called without starting (#311) 2017-06-04 22:37:43 +09:00
Hajime Hoshi
b409631515 Add FreeBSD support (#352) 2017-05-11 19:09:13 +09:00
Hajime Hoshi
112f1419d1 mobile: Start now returns nil 2017-04-18 02:49:14 +09:00
Hajime Hoshi
5c8cbab017 mobile: Fix comments 2017-04-18 02:38:41 +09:00
Hajime Hoshi
0ef1e61d55 mobile: Fix iOS tag usages (#310) 2017-01-26 01:32:33 +09:00
Hajime Hoshi
6164ecb9fc ui: Reduce functions in UserInterface 2016-09-02 23:45:54 +09:00
Hajime Hoshi
0e2a1a1636 mobile: Change the unit from px to dp on Android (#241) 2016-07-03 05:37:56 +09:00
Hajime Hoshi
c7fee53017 mobile: Update a comment about units 2016-07-03 03:57:09 +09:00
Hajime Hoshi
c50f5a3509 mobile: Rename Render -> Update 2016-06-30 02:12:31 +09:00
Hajime Hoshi
a275f7e7cd mobile: Bug fix: calc ID for touches 2016-06-26 16:18:08 +09:00
Hajime Hoshi
891ad34d88 mobile: UpdateTouchesOnIOS should take int64 ptrs 2016-06-26 15:33:21 +09:00
Hajime Hoshi
475d659459 mobile: Fix a comment 2016-06-25 15:51:27 +09:00
Hajime Hoshi
cc5fba729a mobile: Remove EventDispatcher 2016-06-25 15:50:03 +09:00
Hajime Hoshi
59a21620dc mobile: Move Render to a global func 2016-06-25 15:11:47 +09:00
Hajime Hoshi
58218a85b5 mobile: Remove SetScreenSize/Scale 2016-06-25 04:45:19 +09:00
Hajime Hoshi
13388db9a1 mobile: Move comments 2016-06-25 03:46:03 +09:00
Hajime Hoshi
e30ef050f2 mobile: Make it buildable for desktops (just for comments) 2016-06-25 03:41:56 +09:00
Hajime Hoshi
71ded00886 mobile: Rename files 2016-06-25 01:55:32 +09:00
Hajime Hoshi
bb511b2c13 ui: Scale is now float64 (#236) 2016-06-25 01:26:59 +09:00
Hajime Hoshi
3f59c9394c mobile: Bug fix: Revert build tags 2016-06-21 00:51:51 +09:00
Hajime Hoshi
2ba3fd0607 mobile: Implement UpdateTouchesOnIOS 2016-06-21 00:41:55 +09:00
Hajime Hoshi
dfe4db67be Fix for iOS 2016-06-17 02:08:25 +09:00
Hajime Hoshi
13f594baed Fix build tags for iOS (WIP) 2016-06-15 00:19:02 +09:00
Hajime Hoshi
d72a71877a mobile: Add UpdateTouchesOnAndroid 2016-06-14 18:45:36 +09:00
Hajime Hoshi
a1fbf2cd2d graphics: Remove 'Resume' 2016-06-12 23:54:36 +09:00
Hajime Hoshi
f71dcd3466 Remove 'Pause' 2016-06-11 00:57:10 +09:00
Hajime Hoshi
a96a00b545 mobile: Remove locking OS thread in some functions 2016-06-10 00:58:07 +09:00
Hajime Hoshi
e4ca01db31 mobile: Multitouches (#101) 2016-05-28 23:15:28 +09:00
Hajime Hoshi
405ad9a136 mobile: Remove viewID arg 2016-05-28 19:01:26 +09:00
Hajime Hoshi
dd210a3ed1 run: Take View ID for Android 2016-05-28 19:01:26 +09:00
Hajime Hoshi
3195ae32d8 mobile: Implement Pause/Resume 2016-05-24 00:00:54 +09:00
Hajime Hoshi
2b477eef5a mobile: Introduce EventDispatcher to reduce glue code 2016-05-23 02:44:41 +09:00
Hajime Hoshi
f251ae8b49 mobile: Handle touch events 2016-05-23 02:06:01 +09:00
Hajime Hoshi
c5163e89f4 mobile: Add a build tag 2016-05-22 18:05:06 +09:00
Hajime Hoshi
6d06b01cae gomobile bind works 2016-05-22 04:25:15 +09:00
Hajime Hoshi
76ea075896 Add example/mobile (not-compilable yet) 2016-05-19 03:17:50 +09:00
Hajime Hoshi
8f5ca7dddb mobile: Add license 2016-05-19 01:50:43 +09:00
Hajime Hoshi
dd9ab5e45a Introduce mobile module 2016-05-19 01:49:57 +09:00