Commit Graph

45 Commits

Author SHA1 Message Date
mattn
3cd0daac67
go generate ./... with Go 1.19 (#2228) 2022-08-03 20:48:02 +09:00
Hajime Hoshi
c9fa953d69 cmd/ebitenmobile: bug fix: multiple touches were not updated correctly on Android
Closes #2220
2022-07-29 17:48:10 +09:00
Hajime Hoshi
7fdbb4a5d5 cmd/ebitenmobile: bug fix: wrong file name for GLKit.h
Updates #2192
2022-07-09 17:31:30 +09:00
Hajime Hoshi
7e6e022065 cmd/ebitenmobile: support Metal for iOS simulators 2022-03-23 01:34:58 +09:00
Hajime Hoshi
4106fb15fe internal/gamepaddb: implement the mappings for Android
Updates #1557
2022-01-09 03:29:19 +09:00
Hajime Hoshi
b581fe8f22 cmd/ebitenmobile: add -DGLES_SILENCE_DEPRECATION to suppress warnings 2022-01-05 03:06:22 +09:00
Hajime Hoshi
1706d9436a ebiten: Add FPSModeType, FPSMode, SetFPSMode, and ScheduleFrame
This change adds these APIs:

  * type FPSModeType
  * func FPSMode
  * func SetFPSMode
  * func ScheduleFrame

and deprecates these APIs:

  * func SetVsyncEnabled
  * func IsVsyncEnabled

Closes #1556
2021-07-24 16:09:13 +09:00
Hajime Hoshi
f305a04453 cmd/ebitenmobile: Update URLs 2021-07-19 23:00:41 +09:00
Hajime Hoshi
b54ad73a2b Add go:build comments with go1.17beta1 fmt 2021-06-11 01:11:46 +09:00
Hajime Hoshi
58843b68f9 internal/hooks: Enable to return error at suspend/resume audio 2021-05-04 23:09:01 +09:00
Hajime Hoshi
2e6e1ed39d mobile/ebitenmobileview: Add DeviceScale and use it at EbitenView
Closes #1482
2021-04-11 02:30:39 +09:00
Hajime Hoshi
36209465fc cmd/ebitenmobile: Bug fix: Skip 'uinput-fpc' on the joystick detection on Android
Apparently 'uinput-fpc' is a fingerprint reader and is recognized as
a joystick unexpectedly. This was often a primary gamepad on Ebiten
and confused Ebiten applications.

This change fixes this issue by skipping 'uinput-fpc' at the joystick
detection.

Closes #1542
2021-03-14 23:26:06 +09:00
Hajime Hoshi
acb8bcae38 cmd/ebitenmobile, internal/devicescale: Experimental fix of the display density
Closes #1481
2021-02-07 14:07:06 +09:00
Hajime Hoshi
404a662383 cmd/ebitenmobile: Bug fix: an input device might be null
Fixes #1342
2020-09-10 14:14:59 +09:00
Hajime Hoshi
179d32cfbf cmd/ebitenmobile: Misspelling 2020-08-29 03:14:19 +09:00
Hajime Hoshi
71e65fa1b7 cmd/ebitenmobile: Use an explict way to detect context lost on Android
Fixes #1176
2020-08-15 01:39:08 +09:00
Hajime Hoshi
04502aaaa8 cmd/ebitenmobile: Misspelling 2020-06-10 00:33:43 +09:00
Hajime Hoshi
f350b03232 cmd/ebitenmobileview: Bug fix: Crash when removing a gamepad
Fixes #1185
2020-06-09 23:42:32 +09:00
Hajime Hoshi
bc3d1393a6 mobile/ebitenmobileview: Implement gamepads' SDLID on Android
Fixes #1083
2020-03-25 02:28:30 +09:00
Hajime Hoshi
4ec49dd4cf mobile/ebitenmobileview: Implement Android gamepad axes
Updates #1083
2020-03-25 01:15:43 +09:00
Hajime Hoshi
8fcee54849 mobile/ebitenmobileview: Implement Android gamepad buttons
This is still work in progress.

Updates #1083
2020-03-23 01:30:17 +09:00
Hajime Hoshi
e3d1e7784e cmd/ebitenmobile: Refactoring 2020-02-24 17:50:01 +09:00
Hajime Hoshi
de52eb75e4 mobile/ebitenmobileview: Implement InputChars on Android / ebitenmobile
Updates #237
2020-02-23 00:51:49 +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
38d8cbf6af cmd/ebitenmobile: Bug fix: iOS view was not shown
This enbugs that garbages are rendered outside the screen. I think
the bug in iPad is now exposed to any iOS devices.

Updates #1019
2020-02-11 20:20:20 +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
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
15dc4bc647 cmd/ebitenmobile: Refactoring 2019-10-19 02:28:55 +09:00
Hajime Hoshi
6f6cceb42c cmd/ebitenmobile: Do not call addView in onLayout
In onLayout, addViewInLayout is safer.

This change fixes the potential issue by moving addView to
constructors.
2019-10-19 02:15:31 +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
83f93df78b Add 'ebitengl' build tag to force to use GL
Fixes #958
2019-10-13 16:58:33 +09:00
Hajime Hoshi
1f56266027 cmd/ebitenmobile: Bug fix: Use even numbers for the position/size
Fixes #956
2019-10-11 10:53:42 +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
b4969cccd7 cmd/ebitenmobile: Bug fix: Give environment variables to search the package name (gobind) 2019-09-23 19:12:20 +09:00
Hajime Hoshi
1acf110078 cmd/ebitenmobile: Rename onPause/onResume to suspendGame/resumeGame
Fixes #894
2019-09-14 15:36:40 +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
7547207e2d cmd/ebitenmobile: Ensure that rendering never happens on background 2019-09-13 22:49:07 +09:00
Hajime Hoshi
31e0721973 cmd/ebitenmobile: Ensure that frame-update never happens on background 2019-09-13 11:47:45 +09:00
Hajime Hoshi
af3b7117c3 cmd/ebitenmobile: Refactoring 2019-09-13 03:26:13 +09:00
Hajime Hoshi
16337bb6bf cmd/ebitenmobile: Add suspendGame/resumeGame to the ViewController
Updates #894
2019-09-13 03:19:01 +09:00
Hajime Hoshi
ef91fb739f cmd/ebitenmobile: Bug fix: Resume the view correctly 2019-09-07 02:33:38 +09:00
Hajime Hoshi
2c770f3644 cmd/ebitenmobile: Define an error handler for iOS
Updates #919
2019-08-18 20:55:36 +09:00
Hajime Hoshi
0b1aec4d27 cmb/ebitenmobile: Define an error handler for Android
Fixes #919
2019-08-18 20:22:42 +09:00
Hajime Hoshi
e735e26450 cmd/ebitenmobile: Add Android
Updates #863
2019-08-18 15:53:34 +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