Commit Graph

7538 Commits

Author SHA1 Message Date
Hajime Hoshi
98894d66fb internal/ui: revert the fix for #2183
- `CGEventSourceKeyState` cannot treat right modifier keys correctly.
- Unpaired keyup and keydown are very common (especially on browsers)
  and this is not a serious issue.

Updates #2183
2022-08-06 11:19:56 +09:00
Hajime Hoshi
6d87be7169 internal/ui, internal/mipmap: refactoring: replace At with ReadPixels
Updates #1995
2022-08-06 00:32:42 +09:00
Hajime Hoshi
6c22f3f1a8 internal/buffered: refactoring: replace At with ReadPixels
Updates #1995
2022-08-05 23:58:01 +09:00
Hajime Hoshi
bf5f7ee34d internal/restorable: refactoring: replace At with ReadPixels
Updates #1995
2022-08-05 23:37:27 +09:00
Hajime Hoshi
7b6ce7dcba internal/ui: bug fix: reset key states when the window is not focused on macOS
Updates #2183
2022-08-05 20:22:50 +09:00
Hajime Hoshi
e81c46a0d7 internal/ui: bug fix: vkKey definitions were not found on iOS 2022-08-05 19:10:42 +09:00
Hajime Hoshi
50f66963b0 internal/ui: refactoring 2022-08-05 19:07:47 +09:00
Hajime Hoshi
a7135ce10b internal/ui: fix build tags 2022-08-05 19:07:37 +09:00
Hajime Hoshi
a6004517dc internal/ui: use a direct method to get key states instead of events on macOS
Closes #2183
2022-08-05 19:04:01 +09:00
Hajime Hoshi
65654f0fc4 ebitenutil: deprecate some APIs 2022-08-04 16:23:46 +09:00
raa0121
c98501060f
ebitenutil: add NewImageFromFileSystem() (#2230)
Closes #1948
2022-08-04 00:43:31 +09:00
mattn
2bacecca24
fix typos (#2227) 2022-08-03 22:40:39 +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
Hajime Hoshi
5bf1934a70 .github/workflow: update for Go 1.19 2022-08-03 02:15:32 +09:00
Hajime Hoshi
1467772ca3 .github/workflow: specify Android NDK version explicitly
Updates #2085
Closes #2226
2022-08-03 02:05:24 +09:00
Hajime Hoshi
6a985fae4b update Oto: bug fix: crash when the window was inactive and the audio was suspended on Windows
Updates hajimehoshi/oto#179
2022-08-03 00:17:25 +09:00
Hajime Hoshi
764ec8c794 internal/atlas: refactoring 2022-08-02 01:13:46 +09:00
Hajime Hoshi
3d034610a9 ebitenutil: adjust the size of the debug print text image 2022-08-01 14:04:33 +09:00
Hajime Hoshi
074d370096 ebitenutil: improve the performance of DebugPrint
Updates #1880
2022-08-01 01:35:59 +09:00
Hajime Hoshi
dad72b874f ebitenutil: use bitmapfont for the debug print
This removes ebitenutil/internal/assets.
2022-08-01 01:27:03 +09:00
Hajime Hoshi
caa04c45c3 ebitenutil/internal/assets: remove an unused file 2022-08-01 00:30:32 +09:00
Herczog Zoltán
fabf3fb374
internal/graphicsdriver/metal: remove supportsMetal check (#2223)
Closes #2211
2022-07-31 21:20:53 +09:00
Hajime Hoshi
508a42a9c4 update Oto for pure Go on Darwin
Updates #1162
2022-07-31 20:47:13 +09:00
Hajime Hoshi
a27d9a2c48 remove AUTHORS
See golang/go#53961.
2022-07-31 15:47:55 +09:00
Vseslav Kochenov
3ac37e250f
ebiten: add ReadDebugInfo for getting debug info (only graphics libray so far) (#2222)
Closes #2177
2022-07-31 02:56:16 +09:00
Hajime Hoshi
37fe3cdabe ebiten: fix copyright year 2022-07-31 00:48:08 +09:00
Hajime Hoshi
2aa595de52 Revert "internal/graphicsdriver/directx: bug fix: check the error at CreateGraphicsPipelineState at initialization"
This reverts commit c183555cc8.

Reason: this didn't help anything on the reporter's machine
2022-07-31 00:46:26 +09:00
Hajime Hoshi
95fb4370db internal/glfwwin: remove the call of RemovePropW
This is unnecessary, and doesn't work on Xbox.

Also DestroyWindow doesn't work on Xbox so skip this on Xbox.

Updates #2084
2022-07-30 18:42:43 +09:00
Hajime Hoshi
a0546fc594 ebiten: document that EBITENGINE_GRAPHICS_LIBRARY can be set before RunGame 2022-07-30 17:40:48 +09:00
Hajime Hoshi
87aa498bd2 update Oto to v2.3.0-alpha.6 2022-07-30 13:53:34 +09:00
Hajime Hoshi
e41a8be9e4 add tools.go 2022-07-30 02:16:53 +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
ce24e74479 .builds: disable the build test on Arch
The test is failing now: https://builds.sr.ht/~hajimehoshi/job/812014
2022-07-29 16:26:20 +09:00
Hajime Hoshi
c183555cc8 internal/graphicsdriver/directx: bug fix: check the error at CreateGraphicsPipelineState at initialization
CreateGraphicsPipelineState someitmes causes an error
DXGI_ERROR_DEVICE_HUNG, but we failed to know why.

Instead of fixing this, check the error earlier and use the fallback
grpahics library OpenGL in this case.

Updates #2198
2022-07-29 16:20:09 +09:00
Hajime Hoshi
3eeb401d22 internal/gamepaddb: refactoring 2022-07-29 12:17:55 +09:00
Hajime Hoshi
bacb630c5b internal/gamepaddb: bug fix: don't panic with invalid inputs
Closes #2218
2022-07-29 12:14:20 +09:00
Hajime Hoshi
10d50b885f ebiten: fix typo
Closes #2217
2022-07-29 01:02:38 +09:00
Hajime Hoshi
0c5adb95c7 .github/workflow: add Go 1.19 for the test 2022-07-25 00:00:55 +09:00
Hajime Hoshi
ca8c36499d ebiten: recommend errors.Is instead of comparing the returned value directly
Closes #2152
2022-07-24 23:25:48 +09:00
Hajime Hoshi
ac18f69f9c update Oto: asynchronous initialization of audio for Xbox
Updates #2084
2022-07-24 15:25:31 +09:00
Hajime Hoshi
67ae8d9851 update Oto: bug fix: Suspend and Resume were concurrent-unsafe on WASAPI 2022-07-23 23:10:49 +09:00
Hajime Hoshi
7d75f1ad04 update Oto: implement Pause and Resume for WASAPI 2022-07-23 23:00:44 +09:00
Hajime Hoshi
20082b3879 audio: add more explanations to Resample 2022-07-23 18:35:53 +09:00
Hajime Hoshi
2c053cce30 add Vseslav Kochenov to AUTHORS 2022-07-23 18:33:08 +09:00
Vseslav Kochenov
00b530bfcc
audio: add Resample (#2212)
Closes #2055
2022-07-23 18:32:22 +09:00
Hajime Hoshi
017ad69e93 audio: add comments 2022-07-23 18:17:05 +09:00
Hajime Hoshi
46b0563ddd update Oto for WASAPI
Updates #2084
2022-07-22 22:56:06 +09:00
Hajime Hoshi
c83eb8c0c9 update dependencies 2022-07-22 03:44:02 +09:00