Hajime Hoshi
7d146fb70b
internal/ui: bug fix: IsGL / SetUIView can be called before initialization is done
...
The functions in the package `mobile/ebitenmobileview` could be invoked
from EbitenViewController even before the graphics driver initialization
is done in theory.
This change fixes this issue by waiting the initialization by
channels. Also, this change adds error handlings at these functions.
Closes #2455
2022-11-15 01:53:20 +09:00
Artem Yadelskyi
7bf822bdb1
cmd/ebitenmobile: use go:embed
( #2435 )
...
Closes #2410
2022-11-04 17:20:21 +09:00
Artem Yadelskyi
5b53cef59e
all: remove old // +build
comments ( #2431 )
...
Closes #2325
2022-11-03 12:55:14 +09:00
Hajime Hoshi
8aacf067dd
all: use x/sys/execabs instead of os/exec
...
Closes #2418
2022-11-01 23:36:57 +09:00
Hajime Hoshi
62cbe99a27
cmd/ebitenmobile: bug fix: dead lock due to @synchronized
...
Closes #2407
2022-10-25 13:37:34 +09:00
Hajime Hoshi
4864814d78
cmd/ebitenmobile: get the gomobile version dynamically
...
Closes #2356
2022-09-29 02:23:21 +09:00
Hajime Hoshi
ebbf0fbc08
cmd/ebitenmobile: update gomobile
2022-09-28 14:23:48 +09:00
Hajime Hoshi
284c9fcc7f
update URLs in comments
2022-09-23 19:09:25 +09:00
Hajime Hoshi
5404e4d68a
all: replace io/ioutil
with io
and os
...
Closes #1770
2022-09-15 02:54:25 +09:00
Hajime Hoshi
655cd4bf68
all: remove the build tag
...
Updates #1415
2022-09-15 00:23:40 +09:00
Hajime Hoshi
35259fe09e
cmd/ebitenmobile: use go:embed
...
Updates #1258
2022-09-14 23:46:11 +09:00
Hajime Hoshi
f1040d0507
cmd/ebitenmobile: remove GO111MODULE usage
...
GO111MODULE is on by default as of Go 1.16.
Closes #2276
2022-09-14 02:41:47 +09:00
Terra Brown
a1cc44833d
add errcheck static analysis ( #2293 )
...
Closes #2287
2022-09-10 01:52:46 +09:00
Hajime Hoshi
47558d20c5
internal/gamepaddb: enable the database for Android
...
Before this fix, the button and axis IDs are from the OS. These
didn't match with the SDL game controller databaes unfortunately.
This fix changes the assignments of the buttons and the axes to match
with the database.
Closes #2312
2022-09-09 22:20:39 +09:00
Hajime Hoshi
521ec6f09b
cmd/ebitenmobile: fix the button mask to include hat infomation for Android
2022-09-08 00:04:43 +09:00
Hajime Hoshi
4a851bcf27
internal/gamepaddb: fix the assignment of axes for Android
...
Updates #2309
2022-09-07 23:09:58 +09:00
Hajime Hoshi
d66c599938
cmd/ebitenmobile: remove counting buttons and use a constant instead
...
Updates #2309
2022-09-07 15:43:11 +09:00
Hajime Hoshi
b5d755b07a
Revert "internal/gamepaddb: fix button assignments on Android"
...
This reverts commit e161b28bff
.
Reason: this would break backward compatibility
Updates #2309
2022-09-07 15:37:22 +09:00
Hajime Hoshi
e161b28bff
internal/gamepaddb: fix button assignments on Android
...
Updates #2309
2022-09-07 15:34:29 +09:00
Hajime Hoshi
f7c44f086f
replace Ebiten with Ebitengine in comments
2022-08-29 11:17:17 +09:00
Hajime Hoshi
b858f36d54
remove the dependency on file2byteslice
...
Specify the version explicitly instead.
2022-08-23 16:34:55 +09:00
Hajime Hoshi
445378ab31
update dependencies
2022-08-08 11:38:10 +09:00
Hajime Hoshi
1ecc34c2f2
cmd/ebitenmobile: fix typo
...
The generated result is already in the previous commit
3cd0daac67
unexpectedly.
2022-08-03 20:52:25 +09:00
mattn
3cd0daac67
go generate ./... with Go 1.19 ( #2228 )
2022-08-03 20:48:02 +09:00
divVerent
21207f827c
do not require installing file2byteslice to update go generate'd files. ( #2221 )
...
The tool is already referenced in go.mod, so it is trivial to just go run it -
that way, go generate can use it without the user explicitly installing it first.
2022-07-29 20:43:23 +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
4ba0ab6e3a
cmd/ebitenmobile: bug fix: the first character of a framework name must be an upper case
...
Updates #2192
2022-07-09 18:39:51 +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
006b4324dc
cmd/ebitenmobile: update Go mobile to enable the latest Android SDK 24
...
Closes #2085
2022-05-19 09:03:23 +09:00
Hajime Hoshi
331ad93adf
cmd/ebitenmobile: fail earlier when a wrong subcommand is specified
...
Updates #2085
2022-05-02 23:03:28 +09:00
Hajime Hoshi
ad9abe19a6
cmd/ebitenmobile: adjust gomobile version
2022-04-13 23:49:36 +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
116203c5a5
cmd/ebitenmobile: update gomobile version (reland)
...
This switches from .framework to .xcframwork for iOS.
Closes #1922
2022-01-05 17:31:46 +09:00
Hajime Hoshi
b581fe8f22
cmd/ebitenmobile: add -DGLES_SILENCE_DEPRECATION to suppress warnings
2022-01-05 03:06:22 +09:00
Hajime Hoshi
ea1bc76ef2
Revert "cmd/ebitenmobile: update gomobile version"
...
This reverts commit f2e19f9fe5
and b065b64f4f
Reason: building iOS framework fails
Updates #1922
2022-01-05 02:24:02 +09:00
Hajime Hoshi
f2e19f9fe5
cmd/ebitenmobile: update gomobile version
...
Closes #1922
2022-01-05 01:45:33 +09:00
Hajime Hoshi
8418c4a655
cmd/ebitenmobile: add comments
2022-01-03 17:29:43 +09:00
Hajime Hoshi
777e8f2759
cmd/ebitenmobile: Update Gomobile version for Arm macOS
...
Closes #1794
2021-09-06 12:20:20 +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
01d6fd3c72
cmd/ebitenmobile: Update gomobile
2021-07-16 15:16:40 +09:00
Hajime Hoshi
6d0ffeb7d8
cmd/ebitenmobile: Update gomobile (again)
2021-07-10 16:16:32 +09:00
Hajime Hoshi
679fb70092
cmd/ebitenmobile: Update gomobile
2021-07-10 16:14:43 +09:00
Hajime Hoshi
b54ad73a2b
Add go:build comments with go1.17beta1 fmt
2021-06-11 01:11:46 +09:00
Hajime Hoshi
f1fc6fe3e8
cmd/ebitenmobile: Clean the temporary directory up after the execution
2021-06-10 01:06:52 +09:00
Hajime Hoshi
cb0f4c4378
cmd/ebitenmobile: Bug fix: os.WriteFile is not defined at Go 1.15
...
Updates #1667
2021-06-09 22:58:22 +09:00
Hajime Hoshi
cf1a91a344
cmd/ebitnmobile: Bug fix: using ebitenmobile with EBITENMOBILE_GOMOBILE failed
...
Closes #1667
2021-06-09 22:50:01 +09:00
Hajime Hoshi
9cf30d9b70
cmd/ebitenmobile: Handle os.Setenv error
...
Updates #1666
2021-06-09 21:33:40 +09:00
Hajime Hoshi
269a79408f
Revert "cmd/ebitenmobile: Remove gomobile init"
...
This reverts commit ecc8514d4b
.
Reason: This doesn't fix the issue. gomobile assumes the existence of $GOPATH/pkg/gomobile, so leave it as it is.
Updates #1666
2021-06-09 12:58:19 +09:00