Commit Graph

9431 Commits

Author SHA1 Message Date
Hajime Hoshi
60725eba86 ebiten: add RunGameOptions.X11ClassName and X11InstanceName
Closes #2904
2024-02-11 19:31:29 +09:00
Hajime Hoshi
c72e609158 .github/workflows: test Go 1.22 2024-02-07 12:19:29 +09:00
Hajime Hoshi
dd6f5c4565 exp/textinput: bug fix: flaky behavior on iOS Safari
Closes #2898
2024-02-06 12:46:37 +09:00
Hajime Hoshi
d7fc49355b exp/textinput: use mouseup for consistency 2024-02-06 00:53:52 +09:00
Hajime Hoshi
0160d40bfb exp/textinput: bug fix: keyboards didn't show immediately after touching
Updates #2898
2024-02-05 23:40:09 +09:00
Hajime Hoshi
7eee3929de exp/textinput: bug fix: a virtual keybord didn't show on iOS Safari
This change fixes the issue by processing a textarea element in a
click or touchstart event.

There is still little odd behaviors, like a keyboard is sometimes
not shown. Let's fix them later.

Updates #2898
2024-02-05 01:01:02 +09:00
Hajime Hoshi
e3b54b41c2 exp/textinput: bug fix: inputting words doesn't work correctly on Android 2024-02-04 14:28:53 +09:00
Hajime Hoshi
60673752a1 exp/textinput: bug fix: enter key doesn't insert a new line char 2024-02-04 14:20:29 +09:00
Hajime Hoshi
5c7bfd3ed7 exp/textinput, examples/textinput: bug fix: handle input states correctly on Android Chrome
Updates #2898
2024-02-03 22:53:42 +09:00
Hajime Hoshi
0adc1ad681 internal/ui: make virtual keyboard keys work at least on Android
Updates #2898
2024-02-03 21:11:54 +09:00
Hajime Hoshi
2d62de25ed ebiten: remove old comments 2024-02-03 19:15:39 +09:00
Hajime Hoshi
be0ce08663 ebiten: refactoring: replace JSKey with JSCode 2024-02-03 15:22:00 +09:00
Hajime Hoshi
7dd22fdc61 internal/ui: refactoring: rename uiKeyToJSKey to uiKeyToJSCode 2024-02-03 15:13:12 +09:00
Hajime Hoshi
d10636d235 audio: bug fix: suspend and resume player's stopwatches
Updates #2901
2024-02-01 20:30:09 +09:00
Hajime Hoshi
6ced6987cd audio: make (*Player).Position() smoother
Closes #2901
2024-02-01 18:05:14 +09:00
Hajime Hoshi
788529ff76 audio: skip making a player at SetPosition when possible 2024-02-01 17:31:16 +09:00
Hajime Hoshi
eccf67172f all: update purego to v0.6.0-alpha.5 2024-02-01 17:19:26 +09:00
Hajime Hoshi
d1ec00e2ba audio: don't create an underlying player at Position
This is simply unnecessary.
2024-02-01 17:18:18 +09:00
Hajime Hoshi
b9f0db955c audio: refactoring 2024-02-01 15:27:24 +09:00
Hajime Hoshi
061d8617ce all: update hideconsole to v1.0.0 2024-01-31 12:35:16 +09:00
Hajime Hoshi
2ad6ab0dcf exp/textinput: bug fix: position conversion was wrong 2024-01-31 03:51:30 +09:00
Hajime Hoshi
f9fa5a14f2 examples/textinput: bug fix: accept touches
The remaining task is to enable a backspace key.

Updates #2898
2024-01-31 00:15:32 +09:00
Hajime Hoshi
872ffc148d internal/atlas: add TestGCShader
Updates #2897
2024-01-29 23:14:33 +09:00
Hajime Hoshi
f74d66e89a internal/atlas: bug fix: fix GC tests
Updates #2897
2024-01-29 21:01:58 +09:00
Hajime Hoshi
d2a9e5b1e8 internal/atlas: bug fix: fix tests
Updates #2897
2024-01-29 20:52:43 +09:00
Hajime Hoshi
f37ebe549b internal/atlas: bug fix: fix tests
Updates #2897
2024-01-29 20:52:02 +09:00
Hajime Hoshi
9a8dde6503 internal/atlas: bug fix: a finalizer was never called
As the finalizer function had a reference to the target image, the
image's reference count never became 0. Then, the image was never
finalized.

This change fixes this issue by using a member function pointer instead
of an anonymous function.

Closes #2897
2024-01-29 20:39:44 +09:00
Hajime Hoshi
48f3d43189 all: update hideconsole 2024-01-29 01:07:25 +09:00
Hajime Hoshi
77c571b26b all: update hideconsole 2024-01-28 23:01:24 +09:00
Hajime Hoshi
a9549ddf68 all: update hideconsole 2024-01-28 22:55:50 +09:00
Hajime Hoshi
6736bb56ec internal/ui: make a separate package to hide a console
Updates #2896
2024-01-28 22:42:58 +09:00
Hajime Hoshi
373e61d054 internal/ui: call hideConsole at init 2024-01-28 22:05:47 +09:00
Hajime Hoshi
cf393fc56e cmd/ebitenmobile: update comments 2024-01-28 16:06:02 +09:00
Hajime Hoshi
5f7c7dbac6 cmd/ebitenmobile: check the Java package before an execution
Closes #2894
2024-01-28 15:52:16 +09:00
Hajime Hoshi
11394d246f internal/ui: bug fix: check the error of TimeBeginPeriod 2024-01-28 14:25:17 +09:00
Hajime Hoshi
7e4cdf5211 internal/ui: use a more precise timer for Windows
When SetScreenClearedEveryFalse(false) and SetVsyncEnabled(false),
Draw might not be called as often as expected on Windows due to its
timer precision. This change improves the situation.

Updates #2889
2024-01-28 14:15:20 +09:00
Hajime Hoshi
d8af23b437 all: update purego 2024-01-28 01:24:04 +09:00
Hajime Hoshi
770fcff4c2 internal/graphicsdriver/directx: bug fix: Go 1.22 + 32bit Windows + DirectX 12 didn't work well
Apparently, a pseudo padding was needed for D3D12_RESOURCE_DESC,
but this is still mysterious.

This change also add Go 1.22 to the GitHub Actions.

Closes #2867
2024-01-27 18:06:53 +09:00
Hajime Hoshi
8c8802f471 all: update go-text 2024-01-27 10:57:57 +09:00
Pedro Tiple
6fafe734da
internal/graphicscommand: refactoring: remove a hard-coded part for ShaderImageCount (#2895)
This change allows increasing ShaderImageCount without breaking the image display.
Simply made the uniform processing dynamic based on ShaderImageCount.
2024-01-26 13:03:04 +09:00
Hajime Hoshi
8551cd350f internal/ui: bug fix: need to sleep when swapping buffers is skipped
Closes #2890
2024-01-24 12:20:30 +09:00
Hajime Hoshi
006f14ac19 internal/graphicsdriver/playstation5: bug fix: link error 2024-01-22 00:14:00 +09:00
Hajime Hoshi
52e0f10ff7 internal/graphicsdriver/playstation5: bug fix: compile error 2024-01-22 00:05:02 +09:00
Hajime Hoshi
f0509096f8 internal/graphicsdriver/playstation5: add ebitengine_IsErrorNil 2024-01-21 23:54:02 +09:00
Hajime Hoshi
e0ccd013ac internal/graphicsdriver/directx: bug fix: depth should be passed by math.Float32bits
As depth was always 0, there was not an actual problem.
2024-01-21 21:43:09 +09:00
Hajime Hoshi
7652ccef81 all: update dependencies 2024-01-19 18:32:47 +09:00
Hajime Hoshi
5887142da7 internal/grpahicsdriver/metal/mtl: use 3 drawings for fullscreen
Hajime found that renderings were delayed with 2 drawing in fullscreen
though FPS might be lowered. This is mysterious but there is no other
good solution.

Updates #2883
2024-01-19 18:29:47 +09:00
Hajime Hoshi
97625566d8 all: bug fix: update purego for internal/graphicsdriver/metal/mtl tests
Closes #2885
2024-01-18 23:40:48 +09:00
Hajime Hoshi
f27402ee44 internal/mipmap: use a better image size
Unnecessarily big images were used since 4 years go
(f8956941b7). Use a better small image
for mipmaps.
2024-01-18 16:10:15 +09:00
Hajime Hoshi
59487e491c all: update purego 2024-01-18 01:02:57 +09:00