Commit Graph

9383 Commits

Author SHA1 Message Date
Hajime Hoshi
f4ceb961af internal/ui: bug fix: the window size callback was not called on macOS
This is basically a revert of e150745598.

As the window size callback was not called, ebiten.WindowSize didn't
work correctly for a while.

Even after this change, the issue #2257 could not be reproduced. This
is mysterious, but probably macOS itself has updated.

Updates #2257
Closes #3029
2024-06-30 16:02:23 +09:00
Hajime Hoshi
ec9b0882ab .github/workflow: disable wasm tests on Windows temporarily
Updates #2982
2024-06-12 01:58:28 +09:00
Hajime Hoshi
b466ba65b7 exp/textinput: bug fix: issues on browsers
This change addresses on these issues on browsers:

* Pressing cursor keys didn't work well.
  This is fixed by calling trySend with true on desktops (not mobiles).
* Inputting failed just after moving a cursor.
  This is fixed by resetting a session correctly.
* Sometimes pressing the enter key inserted a new line unexpectedly.
  This is fixed by calling `preventDefault`.

Closes #3014
2024-06-12 01:31:52 +09:00
Hajime Hoshi
5df1462dc9 .github/workflows: fix tests for Linux 386
Updates #2667
Closes #2995
2024-05-18 18:10:20 +09:00
Hajime Hoshi
30d6e11e3c all: drop Go 1.18 support
Unfortunately, golang.org/x/tools requires Go 1.19 or newer.

Updates #2994
2024-05-18 17:23:41 +09:00
Hajime Hoshi
9c1ab8eb78 .github/workflows: stop go-vet for Go 1.18
Some tools are not available for Go 1.18 due to a new method:
(*go/types.Func).Origin.

Closes #2994
2024-05-18 17:15:46 +09:00
Hajime Hoshi
80bfebd3cd Revert "all: update typesetting to v0.1.1"
This reverts commit 5cf46f024f.

Reason: this doesn't change the test failure
2024-05-18 17:11:47 +09:00
Hajime Hoshi
5cf46f024f all: update typesetting to v0.1.1 2024-05-18 17:06:48 +09:00
Hajime Hoshi
17017259ce all: update gomobile
This fixes the issue with Android SDK 34.

Closes #2992
2024-05-18 16:55:44 +09:00
Hajime Hoshi
5e39cfec14 internal/ui: bug fix: wrong property names were specified
Closes #2975
2024-04-30 23:33:40 +09:00
Hajime Hoshi
0b5258000f .github/workflows: fix comments
Updates #2972
2024-04-29 09:58:18 +09:00
Hajime Hoshi
02c368bfb4 .github/workflows: bug fix: Wasm tests didn't work on macOS and Windows
Closes #2973
2024-04-28 21:24:55 +09:00
Hajime Hoshi
17d75bfaad internal/gamepaddb: bug fix: platform was not initialized correctly
After 6552ae1dbe, the order of the init
function calls changed, and then the platform was not initialized
correctly.

This change fixes this issue by not relying on an init function to
get the platform.

Closes #2964
2024-04-18 13:30:31 +09:00
Hajime Hoshi
b21ee6f467 examples/texti18n: update comments 2024-04-12 12:30:59 +09:00
Hajime Hoshi
106f3e1a57 text/v2: bug fix: given options were unexpectedly modified
Closes #2954
2024-04-07 22:16:54 +09:00
Hajime Hoshi
4d268f5ce4 internal/ui: bug fix: a window was shown unexpectedly at start-up
Closes #2951
2024-04-07 02:56:07 +09:00
Hajime Hoshi
3136de4958 internal/ui: bug fix: setting a size failed for an invisible window
Updates #2725
Closes #2951
2024-04-06 22:28:56 +09:00
Hajime Hoshi
cf5b851cd3 exp/textinput: typo 2024-04-02 03:09:47 +09:00
Hajime Hoshi
f20fb3998c update dependencies 2024-04-01 23:27:12 +09:00
Hajime Hoshi
5cab3cc88f Revert "internal/graphicsdriver/directx: add 'tearing' for EBITENGINE_DIRECTX"
This reverts commit b6252a41f2.

Reason: We need more investigation about tearing and vsync=off

Updates #2858
2024-03-30 20:09:01 +09:00
Hajime Hoshi
a7088390cd all: update gomobile fixing an Apple validation/distribution issue
Closes #2946
2024-03-30 02:06:37 +09:00
Hajime Hoshi
ec3d2fcfcf all: update README for new packages 2024-03-29 13:37:40 +09:00
Hajime Hoshi
dade012f64 go mod tidy 2024-03-27 23:11:47 +09:00
Hajime Hoshi
073544b894 all: update Oto and PureGo 2024-03-27 23:06:52 +09:00
Hajime Hoshi
013e235628 cmd/ebitenmobile, exp/textinput: typo 2024-03-27 15:40:37 +09:00
Hajime Hoshi
59521d715b all: update go-text 2024-03-27 14:55:02 +09:00
Hajime Hoshi
11398f3bb5 ebiten: rename BuildTag -> BuildConstraints 2024-03-27 14:50:09 +09:00
Hajime Hoshi
5c0c084b6e cmd/ebitenmobile: update the default Android SDK version to 21 2024-03-27 14:23:00 +09:00
Hajime Hoshi
25a814d561 cmd/ebitenmobile: bug fix: wrong path was used
Updates #2937
2024-03-27 12:30:12 +09:00
Hajime Hoshi
0ab4538fa1 all: update gomobile
Closes #2937
2024-03-27 11:55:08 +09:00
Hajime Hoshi
fd2c79398e Revert "internal/atlas: refactoring: ensure ReadPixels to be processed in a frame"
This reverts commit 55702a7c28.

Reason: This didn't work with the single-thread mode.

Updates #1704
Closes #2939
2024-03-26 13:10:00 +09:00
Hajime Hoshi
459ad709a6 internal/gamepaddb: omit the database for consoles
Updates #2936
2024-03-25 03:08:19 +09:00
Hajime Hoshi
04c4676b7c internal/png: update with Go 1.22 2024-03-24 20:36:31 +09:00
Hajime Hoshi
6552ae1dbe internal/gamepaddb: do not include the database for browsers
This reduces Wasm binary size by 525kb.
2024-03-24 20:16:11 +09:00
Hajime Hoshi
dc8baf96f9 internal/gamepaddb: update the database 2024-03-24 19:18:49 +09:00
Hajime Hoshi
d04d6271d0 internal/ui: bug fix: reset some input states on blur events on browsers
Closes #2874
2024-03-24 16:03:17 +09:00
Hajime Hoshi
9147e7b21d all: update dependencies 2024-03-24 16:00:38 +09:00
Hajime Hoshi
28d5f78dfb all: update dependencies 2024-03-24 14:43:51 +09:00
Hajime Hoshi
f4029aaa77 ebiten: add (*Monitor).Size() to replace ScreenSizeInFullscreen()
Also, this change fixes redundant checks the case when a monitor
does not exist. Now Ebitengine checks a monitor existence at the
initialization.

Closes #2145
Closes #2795
2024-03-23 23:32:43 +09:00
Hajime Hoshi
230619a036 vector: allow NonZero for AppendVerticesAndIndicesForStroke
Closes #2833
2024-03-23 18:51:25 +09:00
Hajime Hoshi
b6252a41f2 internal/graphicsdriver/directx: add 'tearing' for EBITENGINE_DIRECTX
Now tearing happens only when 'tearing' is specified and vsync is off.

Closes #2858
2024-03-23 17:53:13 +09:00
Hajime Hoshi
0651803c40 examples/shader: add comments
Updates ebitengine/ebitengine.org#29
2024-03-23 15:45:55 +09:00
Hajime Hoshi
ea6fce45ff internal/shader: bug fix: crash on assignment mismatches 2024-03-23 15:30:49 +09:00
Hajime Hoshi
66667fe877 internal/shader: bug fix: test failures
Updates #2934
2024-03-23 15:15:33 +09:00
Hajime Hoshi
7842942b24 internal/shader: bug fix: need to covert constant type correctly for assignments
Closes #2934
2024-03-23 15:08:34 +09:00
Hajime Hoshi
e7bb66bb2f internal/shader: bug fix: ++/-- statements didn't work for vec2 on browsers
Closes #2933
2024-03-22 23:15:33 +09:00
Mykhailo Lohachov
1586c6764a
internal/shaderir: Kage update support for shift operators (#2916)
Closes #2755
2024-03-22 18:14:03 +09:00
Hajime Hoshi
86f53b73e3 examples/dragmascot: add a comment
Updates #2783
2024-03-22 12:41:15 +09:00
Hajime Hoshi
f2f037ebda examples: add an example to drag a desktop mascot
Closes #2783
2024-03-22 12:23:55 +09:00
Hajime Hoshi
b7dd45c0e4 internal/gamepad: ignore the very first MotionEvent with 0 value for Android
On Android, MotionEvent with 0 values might come for axes when connecting
a gamepad, even though a user didn't touch any axes. This is problematic
especially for tirgger axes, where the default value should be -1.

This change fixes the issue by adding a new state `axesReady` to check
if an axis is really touched or not. If an axis is not touched yet,
a button value for a standard (trigger) button always returns 0.

This change also removes an old hack to initialize axis values for
triggers.

Closes #2598
2024-03-21 22:28:48 +09:00