Hajime Hoshi
dd7e125d9c
ebiten: add KeyName for desktops and browsers
...
Updates #1904
2022-12-25 03:37:29 +09:00
Hajime Hoshi
e6346c01d2
internal/ui: stop panicking at Key.String
2022-12-25 00:33:08 +09:00
Hajime Hoshi
8e1bd4eaba
internal/graphicsdriver/directx: refactoring
2022-12-24 18:05:47 +09:00
Hajime Hoshi
fda0b1cbcb
internal/graphicsdriver/directx: reuse a compiled vertex shader if possible
...
D3DCompile can be a very slow function, and let's skip this if possible.
2022-12-24 17:44:54 +09:00
Hajime Hoshi
88fe3d1287
internal/shaderir: rename TextureNum to TextureCount
2022-12-24 15:55:05 +09:00
Hajime Hoshi
88e5d5e059
Revert "internal/shaderir: refactoring: remove Program.TextureNum"
...
This reverts commit c2bea16776
.
Reason: test compilation errors
2022-12-24 15:53:16 +09:00
Hajime Hoshi
c2bea16776
internal/shaderir: refactoring: remove Program.TextureNum
2022-12-24 15:15:41 +09:00
Hajime Hoshi
f9650fbb8c
internal/graphics: update error messages
2022-12-24 14:34:02 +09:00
Hajime Hoshi
7af300a468
update Oto to v2.4.0-alpha.9
2022-12-24 14:33:12 +09:00
Hajime Hoshi
e4576a3de5
internal/restorable: bug fix: concurrent map write
2022-12-24 03:14:04 +09:00
Hajime Hoshi
71492554a7
internal/restorable: compile shaders in parallel
2022-12-24 02:00:42 +09:00
Hajime Hoshi
1b4f68d775
internal/graphicsdriver/directx: call D3DCompile in parallel
...
D3DCompile can be very slow on some old machines.
See also https://bugs.chromium.org/p/angleproject/issues/detail?id=422
2022-12-24 01:22:33 +09:00
Hajime Hoshi
de8184ac10
internal/graphicsdriver/directx: implement suspend/resume for Xbox
2022-12-23 17:28:03 +09:00
Hajime Hoshi
8dc582aca4
update Oto (reverting the fix for pausing/resuming)
...
Updates #2074
2022-12-21 12:05:46 +09:00
Hajime Hoshi
d3655940bd
internal/ui: bug fix: input states must be updated before the hook
...
Closes #2502
2022-12-21 11:46:58 +09:00
Hajime Hoshi
8ccfa7bec1
update Oto (to reduce clicking noises on pausing/resuming)
...
Updates #2074
2022-12-21 02:25:14 +09:00
Hajime Hoshi
a5b6f39ed7
internal/ui: bug fix: reset the input state immediately after reading
...
Before this change, the input state was reset at the end of a tick.
This means that wheel deltas or input chars in a tick might be reset
unexpectedly.
This change fixes the issue by reseting the input state immediately
when reading, so that wheel events and input-char events are preserved.
Updates #2496
Updates #2501
2022-12-21 00:27:28 +09:00
Hajime Hoshi
f989f8a9fa
update Oto (reduce noises when changing volumes)
2022-12-20 11:59:30 +09:00
Hajime Hoshi
38f802cb40
internal/ui: simplify the logic of skipping rendering
2022-12-20 11:34:47 +09:00
Hajime Hoshi
59295cc85f
internal/ui: bug fix: input state should be reset for each tick, not frame
...
Before this change, input states were reset for each frame. When FPS
is bigger than TPS, the input state was reset more often than expected
and then some inputs were missing.
This change fixes the issue by resetting input states not for each frame
but for each tick.
This change also updates some comments of the input API.
Updates #2496
Closes #2501
2022-12-20 10:07:19 +09:00
Hajime Hoshi
d80f1112ed
ebiten: bug fix: wrong detection of mod keys
...
Updates #2501
2022-12-20 03:40:14 +09:00
Hajime Hoshi
78285c3916
ebiten: update comments
2022-12-20 03:09:03 +09:00
Hajime Hoshi
3eb2b480be
internal/ui: bug fix: adjust the max skip count for fullscreening
...
Closes #2500
2022-12-20 02:46:45 +09:00
Hajime Hoshi
d1b9a0a9a1
internal/ui: freeze the input state for each frame
...
After this change, the input APIs will return more consistent results
for one frame.
Closes #2496
2022-12-18 23:54:43 +09:00
Hajime Hoshi
e1804eca64
update Oto
2022-12-18 16:12:44 +09:00
Hajime Hoshi
ff25728dcf
update Oto
2022-12-17 15:03:21 +09:00
Hajime Hoshi
e5a8f99a67
update Oto
2022-12-17 14:21:50 +09:00
Hajime Hoshi
bb39f3a797
update bitmapfont to v2.2.3
2022-12-17 00:20:14 +09:00
Hajime Hoshi
3152d88477
internal/ui: remove old Edge browser support
...
Closes #1059
2022-12-16 22:56:36 +09:00
Hajime Hoshi
9ad7a55db2
internal/ui: remove unused functions
2022-12-16 15:17:59 +09:00
Hajime Hoshi
d79f1a3d08
update Oto to v2.4.0-alpha.8
2022-12-16 03:05:25 +09:00
Hajime Hoshi
61a009e508
internal/ui: bug fix: FPS drop on fullscreen on macOS 13
...
Updates #1745
Closes #2495
2022-12-16 02:59:06 +09:00
Hajime Hoshi
9911b760c5
update Oto
2022-12-13 13:08:47 +09:00
Hajime Hoshi
72dc730b42
internal/ui: bug fix: care the case when CoInitializeEx returns S_FALSE
2022-12-13 13:01:32 +09:00
Hajime Hoshi
8ab220df7f
internal/ui: bug fix: compile error
2022-12-13 02:38:45 +09:00
Hajime Hoshi
b022f6d86a
internal/ui: bug fix: error check at syscall
2022-12-13 02:26:07 +09:00
Hajime Hoshi
0bec1e65fa
ebiten: add RunGameOptions.SkipTaskbar
...
Closes #1518
2022-12-13 02:00:44 +09:00
Hajime Hoshi
1dd7c1cce3
update dependencies
2022-12-13 01:44:04 +09:00
Hajime Hoshi
8e5ae88738
examples/mascot: use RunGameWithOptions
...
Updates #2378
2022-12-13 01:06:48 +09:00
Hajime Hoshi
6ed5293132
internal/gamepaddb: update gamepad db
2022-12-12 02:50:58 +09:00
Hajime Hoshi
c321d069a8
internal/graphicscommand: remove unnecessary type parameters
2022-12-10 00:43:41 +09:00
Hajime Hoshi
3024e07ecc
ebiten: add RunGameOptions.ScreenTransparent
...
Closes #2378
2022-12-09 22:50:57 +09:00
Hajime Hoshi
d31b0189a2
ebiten: add RunGameOptions.InitUnfocused
...
Updates #2378
2022-12-09 21:27:32 +09:00
Hajime Hoshi
bb68ebfcad
ebiten: add RunGameWithOptions to specify graphics library
...
This also adds mobile.SetGameWithOptions.
Updates #2378
2022-12-09 21:27:31 +09:00
Hajime Hoshi
032f55d19a
ebiten: update comments
2022-12-09 21:18:37 +09:00
Hajime Hoshi
015ce2b262
internal/ui: refactoring: reduce APIs
2022-12-09 00:05:22 +09:00
Hajime Hoshi
c159938910
.github/workflows: add Go 1.20
2022-12-08 14:26:02 +09:00
Hajime Hoshi
1f741fa007
internal/glfw: do not panic for an error at Monitor.GetContentScale
...
Updates #2488
2022-12-08 13:39:19 +09:00
Hajime Hoshi
8a95b1d85c
internal/glfwwin: ignore an error ERROR_SUCCESS for all Windows APIs
...
This is still mysterious, but this can happen on some old machines.
Updates #2478
Closes #2489
2022-12-08 12:33:52 +09:00
Hajime Hoshi
14688348a8
internal/ui: bug fix: wrong calculation of wheel scrolling
...
Closes #2487
2022-12-08 02:10:01 +09:00