Hajime Hoshi
66410a03cb
.github/workflows: update issue-labeler
2023-07-08 19:28:38 +09:00
Hajime Hoshi
4267e5d22e
internal/gamepad: bug fix: do not call GetRawInputDeviceList with the count 0
...
Updates #2696
2023-07-08 19:18:05 +09:00
Hajime Hoshi
bc2b373bca
internal/glfw/glfw: fix build tags
2023-07-08 14:04:30 +09:00
Hajime Hoshi
f8d8d7a231
examples/life, internal/graphicsdriver/opengl/gl: format copyright texts
2023-07-08 02:50:54 +09:00
Hajime Hoshi
c2b386a917
internal/glfw/glfw: refactoring
2023-07-08 02:34:56 +09:00
Hajime Hoshi
fafbe2711f
internal/glfw/glfw: refactoring
2023-07-08 02:16:39 +09:00
Hajime Hoshi
8039911bc8
internal/glfw/glfw: add license header comments
2023-07-08 02:15:47 +09:00
Hajime Hoshi
a4c2072c0f
internal/glfw/glfw: add 'static' to C functions
2023-07-08 00:37:20 +09:00
Hajime Hoshi
eba8713c64
internal/glfw/glfw: refactoring: reduce files
2023-07-08 00:33:20 +09:00
Hajime Hoshi
0db860b5dd
update purego to v0.4.0-alpha.5
2023-07-07 12:26:00 +09:00
Hajime Hoshi
65fd352e3b
internal/glfw/glfw: remove unused files
2023-07-07 12:12:47 +09:00
Hajime Hoshi
15cc0f4280
ebiten: update comments
2023-07-07 01:42:19 +09:00
Hajime Hoshi
7a7d4fd91f
internal/ui: bug fix: need to delay to capture a cursor
...
From the spec https://w3c.github.io/pointerlock/#extensions-to-the-element-interface ,
capturing a cursor might require a cooltime. This change adds a delay
to capture a cursor just after escaping from a capture.
Closes #2693
2023-07-07 01:24:02 +09:00
Hajime Hoshi
d0b6d2c41a
internal/glfw/glfw: remove implementation for joystick
...
Closes #2692
2023-07-06 23:24:34 +09:00
Hajime Hoshi
59399b01e3
.builds: use fedora/latest again
...
This was fixed at 6b1f66e9ea
.
Updates #2688
2023-07-06 18:25:48 +09:00
Hajime Hoshi
8052c5bdd5
internal/glfw/glfw: remove the Windows part
2023-07-06 00:08:48 +09:00
Hajime Hoshi
fbe732b378
copy github.com/go-gl/glfw/v3.3/glfw to internal/glfw/glfw
...
Closes #2546
2023-07-05 23:59:34 +09:00
guangwu
54e1263565
all: unnecessary use of fmt.Sprintf ( #2691 )
...
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2023-07-05 16:36:29 +09:00
Hajime Hoshi
c908685e55
ebiten: reduce a dependency on go-gl/glfw
...
Updates #2546
2023-07-05 10:13:07 +09:00
Hajime Hoshi
eb5c1ee818
internal/ui: bug fix: the original cursor position was not scaled correctly
...
Updates #2690
2023-07-05 09:24:29 +09:00
Hajime Hoshi
929539b66e
add exp/textinput package
...
This works only for macOS and browsers so far.
Updates #1029
2023-07-05 02:09:04 +09:00
Hajime Hoshi
50704e3141
update purego
2023-07-04 23:36:28 +09:00
Hajime Hoshi
1d02d20879
internal/ui: fix comments
2023-07-04 23:34:00 +09:00
Hajime Hoshi
1d143ffccb
examples/texti18n: add comments
...
Updates #2454
2023-07-01 19:57:45 +09:00
Hajime Hoshi
198bd4788e
examples/texti18n: bug fix: space characters were ignored
2023-07-01 18:17:01 +09:00
Hajime Hoshi
3ab50c91df
examples: add examples/texti18n
...
This example shows how to render complex glyphs like Thai and Arabic.
Updates #675
2023-07-01 18:04:05 +09:00
Hajime Hoshi
820a241b8e
update dependencies
2023-07-01 00:55:20 +09:00
Hajime Hoshi
6bb19c9e60
.builds: change the image name for Fedora
...
Updates #2688
2023-07-01 00:14:18 +09:00
Hajime Hoshi
96425dcb79
colorm: use any instead of interface{}
2023-06-30 23:56:26 +09:00
Hajime Hoshi
d23567c92e
ebiten: add ColorScale.ScaleWithColorScale
...
Closes #2687
2023-06-30 18:19:40 +09:00
Hajime Hoshi
1514749041
examples/text: remove a dependency on math/rand
2023-06-25 01:33:25 +09:00
divVerent
1a9bff390d
mobile/ebitenmobileview: Android: include keypress runes even for unmapped keys. ( #2685 )
...
Note that this is a theoretical bug - I do not have a keyboard I can
reproduce this. However, if I remove a key from genkeys.go, pressing
that key will, after this change, still emit its character to
AppendInputChars.
Thus, this better supports "odd" international keyboards.
Also, make the updateInput calls more consistent - always one call per
event. This should change no behavior, but should be more debuggable.
Closes #2684
2023-06-24 21:33:17 +09:00
divVerent
ede787c228
mobile/ebitenmobileview: make runes a parameter. ( #2683 )
...
This prevents duplicate input characters due to concurrent touch events.
Closes #2682
2023-06-24 13:40:29 +09:00
divVerent
1789f509e1
mobile/ebitenmobileview: add iOS Keyboard support. ( #2678 )
...
Closes #1090
2023-06-24 05:00:13 +09:00
divVerent
b96aea70f1
internal/ui: compute antialias region size correctly. ( #2681 )
...
Closes #2679
2023-06-24 02:25:19 +09:00
Hajime Hoshi
6813c7d5e2
ebiten: update a URL
2023-06-24 00:44:15 +09:00
Hajime Hoshi
569f472475
examples: replace BoundString with MeasureString and Metrics
2023-06-11 04:26:16 +09:00
Hajime Hoshi
7791ae3029
examples/text: bug fix: go-vet error
2023-06-10 19:29:14 +09:00
Hajime Hoshi
911cf0c48c
text: deprecate BoundString
...
After we found a correct definition of the term 'dot', BoundString seems
less useful than expected. In order to adjust the position of a text, we
should use a face's Metrics and a string's advance (font.MeasureString).
2023-06-10 19:21:04 +09:00
Hajime Hoshi
585e929f9f
.github/workflows: update Go versions
2023-06-07 11:49:59 +09:00
Hajime Hoshi
90735b52a9
update bitmapfont to v3.0.0
2023-06-02 02:36:25 +09:00
Hajime Hoshi
41906115f4
examples/blend: use the face's metrics to calculate the position
...
For centering, using bounds is slightly inaccurate as the bounds
don't consider left/right-side bearings. Also, using bounds for
heights is slightly inaccurate as baselines for texts on the same
line would not be the same.
Updates #2143
2023-06-02 01:58:21 +09:00
Hajime Hoshi
0918877344
text: update comments
2023-06-02 00:46:07 +09:00
Hajime Hoshi
2a10a75774
update gomobile
2023-06-01 11:07:13 +09:00
Hajime Hoshi
11e79f3b51
text: update comments
2023-05-30 17:50:08 +09:00
Hajime Hoshi
f446288e0c
update bitmapfont to v3
2023-05-30 11:17:36 +09:00
Hajime Hoshi
af767c5d8d
.github/workflows: reenable 32bit Linux building
...
Closes #2667
2023-05-29 00:46:22 +09:00
Hajime Hoshi
baea6d47ee
text: cache Kern values
...
Closes #2673
2023-05-28 23:23:43 +09:00
Hajime Hoshi
e374ca0ac3
text: refactoring: introduce faceWithCache
2023-05-28 22:54:07 +09:00
Hajime Hoshi
8de08295e9
internal/restorable: refactoring
2023-05-26 01:44:13 +09:00