Commit Graph

8827 Commits

Author SHA1 Message Date
Hajime Hoshi
085a4f6914 update README 2023-02-05 14:06:58 +09:00
Hajime Hoshi
f4371991fe internal/gamepad: refactoring 2023-02-02 22:33:01 +09:00
Hajime Hoshi
628418d88e internal/gamepaddb: update the database 2023-02-02 22:00:34 +09:00
Hajime Hoshi
fa751853d7 .github/workflows: use Go 1.20 2023-02-02 10:35:15 +09:00
Hajime Hoshi
157f535b88 update Oto to v2.4.0-alpha.12 2023-01-30 15:42:07 +09:00
Pierre Curto
4de807cc44
all: fix typos (#2558)
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 19:06:38 +09:00
Pierre Curto
04170d628f
text: fix typos and add fields to struct initializers (#2556)
Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
2023-01-28 00:14:37 +09:00
Hajime Hoshi
7502da50ba update Oto (bug fix for a WinMM crash when no audio is connected)
Closes #2318
2023-01-27 21:42:11 +09:00
Hajime Hoshi
ada2c8b67e update Oto 2023-01-27 20:24:49 +09:00
Hajime Hoshi
328532c9fa update Oto (fix the issue when disabling all the audio devices)
Closes #2555
2023-01-27 18:44:07 +09:00
Hajime Hoshi
2790add85d update Oto (support PS5 controllers by WASAPI)
Closes #2536
2023-01-27 16:07:20 +09:00
Hajime Hoshi
38a6583438 examples/audio: change the sample rate from 32000 -> 48000 2023-01-27 14:58:17 +09:00
Hajime Hoshi
0c76a0cbd7 examples/dropfile: bug fix: handle errors correctly 2023-01-25 15:25:06 +09:00
Hajime Hoshi
f009dd8dd2 ebiten: implement DroppedFiles to replace AppendDroppedFiles
Closes #2552
2023-01-25 14:27:11 +09:00
Hajime Hoshi
aa52402a90 internal/graphicsdriver/metal: fix a comment 2023-01-24 02:22:35 +09:00
Hajime Hoshi
16e49e0499 internal/ui: fix a potential out-of-range error 2023-01-24 00:32:08 +09:00
Hajime Hoshi
7f39b9c5b6 internal/graphicsdriver/metal: use supportsFeatureSet: as a fallback
This change is a fix for a regression that happened on macOS High Sierra.

Closes #2553
2023-01-23 23:44:56 +09:00
Hajime Hoshi
84e32c2e4e internal/ui: more precise detection of directory on browsers
Updates #1868
2023-01-22 18:28:34 +09:00
Hajime Hoshi
e03cb0d4df examples/dropfile: bug fix: go vet failed 2023-01-22 17:31:24 +09:00
Hajime Hoshi
8c25fac860 ebiten: add AppendDroppedFiles
Closes #1868
2023-01-22 17:22:25 +09:00
Hajime Hoshi
40aa35750c ebiten: bug fix: updating the input state must be protected by a mutex 2023-01-22 01:49:43 +09:00
Hajime Hoshi
b79f0394cc internal/ui: refactoring: allow slices in InputState 2023-01-22 01:28:57 +09:00
Hajime Hoshi
d53803615a internal/ui: merge a window-closing state into an input state 2023-01-21 23:42:48 +09:00
Hajime Hoshi
d37aadd064 .github/workflows: fix govetblock.txt
Updates #2546
2023-01-21 22:17:36 +09:00
Hajime Hoshi
35e25a3636 rename internal/glfwwin -> internal/goglfw
Updates #2546
2023-01-21 22:09:21 +09:00
Hajime Hoshi
aebb7e9aef .github/workflows: update wasmbrowsertest 2023-01-21 18:47:30 +09:00
Hajime Hoshi
b065f53a67 .github/workflows: update Go 1.20 to RC3 2023-01-20 16:16:41 +09:00
Hajime Hoshi
06bc569b73 internal/shader: bug fix: wrongly typed constants were unexpectedly used
Closes #2549
2023-01-20 02:26:39 +09:00
Hajime Hoshi
f054a7634a ebiten: deprecate (*Image).Size
Closes #2351
2023-01-20 01:26:37 +09:00
Hajime Hoshi
8d61d43371 .github/ISSUE_TEMPLATE: remove 02-security.yml
GitHub now provides a default template.

https://docs.github.com/en/code-security/security-advisories/repository-security-advisories/configuring-private-vulnerability-reporting-for-a-repository
2023-01-18 03:37:00 +09:00
Hajime Hoshi
f17be388b2 update Oto to v2.4.0-alpha.11 2023-01-15 02:08:47 +09:00
Hajime Hoshi
96a44eceaf internal/glfwwin: remove unused functions 2023-01-14 17:04:46 +09:00
Hajime Hoshi
72f026e254 internal/graphicsdriver/opengl/gl: bug fix: searching GL libraries failed on some machines
On a Debian machine, LD_LIBRARY_PATH might not be set and libGL.so might
not exist (libGL.so.1 exists instead). In this case, searching for a GL
library fails

This change fixes the issue by not using LD_LIBRARY_PATH and also including
`libGL.so.*` files as candidates for dlopen.

Closes #2539
2023-01-13 15:08:06 +09:00
Pierre Curto
abd293fae6
text, vector: fix typos and redundant casts (#2537) 2023-01-13 03:28:41 +09:00
Hajime Hoshi
a06c15fb66 update Oto (bug fix: possible memory leak on Windows) 2023-01-12 13:20:09 +09:00
Hajime Hoshi
8017f2b3a8 update Oto (bug fix: crash when a device is switched during suspension on Windows) 2023-01-12 04:41:31 +09:00
Hajime Hoshi
4cc9d4d0db update Oto (avoid crashing w/ a PS5 controller)
A game might crash when a PS5 controller is connected due to switching
audio device. The latest Oto fix at least avoids this crash.

This crash is confirmed only with a Steam game so far.

Updates #2535
2023-01-12 03:58:27 +09:00
Hajime Hoshi
1da6b06041 .github/workflows/vuln: update Go versions 2023-01-11 21:37:19 +09:00
Hajime Hoshi
ff4e382902 update Oto (more precise buffer-size calculations) 2023-01-10 01:00:11 +09:00
Hajime Hoshi
d3553bf698 update Oto (adjust the buffer size to 50[ms] for Windows)
Updates #2534
2023-01-09 22:15:08 +09:00
Hajime Hoshi
80bbdd3ca3 update Oto (fix for buffer size calculation on macOS/iOS) 2023-01-09 21:54:45 +09:00
Hajime Hoshi
0288a552e1 update Oto 2023-01-09 20:37:11 +09:00
Hajime Hoshi
8ef52841bc audio: use NewContextWithOptions
Upates #2534
2023-01-09 19:15:31 +09:00
Hajime Hoshi
6bce8fea2d audio: update comments 2023-01-09 18:53:19 +09:00
Hajime Hoshi
217584ceb3 bug fix: unexpected 'replace' in go.mod 2023-01-09 02:16:30 +09:00
Hajime Hoshi
08fba564f8 internal/ui: refactoring: define global sel_ objects 2023-01-09 01:41:13 +09:00
Hajime Hoshi
6f4cb04ebb
text: make CacheGlyphs create all the sub-pixel variations (#2530)
Before this change, CacheGlyphs created only necessary glyphs wihtout
considering variations by sub-pixels in X direction. This was sometimes
unexpected when a user might want to prepare glyph cache with a string
including all the letters, instead of actual texts.

This change makes CacheGlyphs create all the sub-pixel variations of
the given runes.

Updates #2469
Closes #2528
2023-01-07 23:22:55 +09:00
divVerent
abece041f4
internal/graphicsdriver/opengl: fix state tracking of glBindTexture / glActiveTexture interaction (#2526)
After switching texture units using glActiveTexture, a different texture may
be bound. For now, let's just force the active texture state variable to zero
so the next glBindTexture call isn't skipped.

Closes #2525
2023-01-07 23:13:14 +09:00
Hajime Hoshi
95f1ef0fb9 internal/ui: bug fix: recover the cursor shape when the cursor is visible
Closes #2527
2023-01-07 20:03:21 +09:00
Hajime Hoshi
86fa9366f7 internal/ui: use 'set' instead of 'push' for cursors
We don't need to use a cursor stack.
2023-01-07 19:16:41 +09:00