1
0
mirror of https://github.com/hajimehoshi/ebiten.git synced 2025-01-21 08:22:03 +01:00
Commit Graph

5918 Commits

Author SHA1 Message Date
Hajime Hoshi
20705d63a3 internal/uidriver/js: Refactoring 2021-04-16 03:13:12 +09:00
Hajime Hoshi
ead84553a0 internal/uidriver/js: Implement CursorModeCaptured
Closes 
2021-04-16 03:09:24 +09:00
Hajime Hoshi
3c1226a227 internal/uidriver/js: Bug fix: SetCursorMode didn't work 2021-04-16 01:21:48 +09:00
Hajime Hoshi
d00d0c8556 ebiten: Add CursorShape/SetCursorShape/CursorShapeType
This change adds APIs to enable to use system cursor shapes other
than the default shape (an arrow).

This change doesn't add these cursors since they seem a little
different on macOS from the other platforms.

 * GLFW_HRESIZE_CURSOR
 * GLFW_VRESIZE_CURSOR

Closes 
2021-04-16 01:09:19 +09:00
Hajime Hoshi
71e899acf3 internal/uidriver/glfw: Refactoring 2021-04-15 02:01:20 +09:00
Hajime Hoshi
264274b43b Fix test.yml to always use the latest Ebiten on mobiles
Updates 
2021-04-15 00:19:30 +09:00
Hajime Hoshi
a7754eaae0 cmd/ebitenmobile: Update gomobile version 2021-04-14 22:57:39 +09:00
Hajime Hoshi
4398a5e227 ebiten: Change the key name convention to follow the Web standard
Closes 
2021-04-14 22:49:07 +09:00
Hajime Hoshi
4c22314b3a ebiten: Remove old comments 2021-04-14 00:21:15 +09:00
Hajime Hoshi
c918a6ab20 ebiten: Refactoring genkeys.go 2021-04-14 00:01:16 +09:00
Hajime Hoshi
3043c6cb8e examples/windowsize: Enable to switch CursorMode 2021-04-11 03:33:02 +09:00
Hajime Hoshi
7934c3b22b internal/driver: Clean CursorMode values up 2021-04-11 03:29:14 +09:00
Hajime Hoshi
2e6e1ed39d mobile/ebitenmobileview: Add DeviceScale and use it at EbitenView
Closes 
2021-04-11 02:30:39 +09:00
Hajime Hoshi
8a8700b636 Update indirect dependencies 2021-04-11 01:50:35 +09:00
Hajime Hoshi
a121d01c8a Update dependencies 2021-04-11 01:48:10 +09:00
Hajime Hoshi
3b4352f533
Add iOS build on GitHub Actions ()
Closes 
2021-04-11 00:04:09 +09:00
Hajime Hoshi
e0372d9478
Add Android build on GitHub Actions ()
Updates 
2021-04-10 22:36:49 +09:00
Hajime Hoshi
50afac7d71 Update README 2021-04-10 22:26:41 +09:00
Hajime Hoshi
7d7a0b7426
Reenable the Wasm test on Ubuntu ()
Closes 
2021-04-10 21:49:25 +09:00
Hajime Hoshi
45f10f134f ebiten: Add Key{Left,Right}{Alt,Control,Shift,Super}
Closes 
2021-04-10 19:59:34 +09:00
Hajime Hoshi
d46b0c5b49 examples/shader: Use const
Closes 
2021-04-09 02:02:03 +09:00
Hajime Hoshi
77b51e4707 internal/shader: Add more tests and improve the comment
Updates 
2021-04-09 01:25:37 +09:00
Hajime Hoshi
1cdc6ea72b internal/shader: Bug fix: Treat multiple constant definitions in one statement correctly
Updates 
2021-04-09 01:18:38 +09:00
Hajime Hoshi
3b6fa891ac internal/shader: Bug fix: Error on duplicated const/var names
Updates 
2021-04-09 00:12:17 +09:00
Hajime Hoshi
59a80cf953 internal/shader: Implement basic constants
Updates 
2021-04-09 00:00:49 +09:00
Hajime Hoshi
0246a6407e ebiten: Guarantee that CursorPosition returns (0, 0) in the very initial state on desktops
This change also guarantees that CursorPosition always returns (0, 0)
on mobiles.
2021-04-07 03:08:09 +09:00
Hajime Hoshi
ad3c76b6d9 internal/uidriver/js: Bug fix: CursorPosition crashed before the main loop on browsers
Closes 
2021-04-07 03:07:09 +09:00
Hajime Hoshi
0300be7d9e examples/keyboard: Use inpututil functions in Update rather than Draw
This is not a strict rule, but it is preferrable to use input functions
in Update rather than Draw.
2021-04-07 01:54:53 +09:00
Hajime Hoshi
0fcf5c8470 inpututil: Add PressedKeys
Closes 
2021-04-07 01:50:39 +09:00
Hajime Hoshi
6fe6543b4b internal/graphicsdriver/opengl: Bug fix: getBufferSubData was available only with WebGL2 2021-04-06 00:11:51 +09:00
Hajime Hoshi
bd8367588e internal/graphicsdriver/opengl: Prepare function objects by bind
Passing a Go string to the JS world is expensive. This change reduces
this cost by preparing function objects by bind.

Closes 
2021-04-05 23:53:21 +09:00
Hajime Hoshi
5c8d8ab2eb ebiten: Make NewImage/NewImageFromImage panic when RunGame finishes
Closes 
2021-04-03 18:44:43 +09:00
Hajime Hoshi
d6ee55cb22 ebiten: Update comments 2021-04-03 18:05:36 +09:00
Hajime Hoshi
8d951ea024 ebiten: Update comments 2021-04-03 17:56:34 +09:00
Hajime Hoshi
475453d5d2 internal/uidriver/glfw: Refactoring: use glfw.Window when possible
Updates 
2021-04-03 17:29:38 +09:00
Hajime Hoshi
4263b8e352 Update Go versions at the tests 2021-04-02 11:15:25 +09:00
Hajime Hoshi
0de024229d audio: Guarantee that (*Player).Current's returning value is increased monotonically
Closes 
2021-03-31 23:41:28 +09:00
Hajime Hoshi
83dc3966e7 audio/internal/go2cpp: Bug fix: Set the volume whenever the player state is 2021-03-31 21:08:32 +09:00
Hajime Hoshi
3a0f7e619e Update README 2021-03-30 10:39:28 +09:00
Hajime Hoshi
603facec0d Update README 2021-03-30 10:32:01 +09:00
Hajime Hoshi
160441bb07 ebiten: Bug fix: Wrong documentation about SetScreenClearedEveryFrame
Closes 
2021-03-30 00:32:17 +09:00
Hajime Hoshi
9dd00114c5 internal/devicescale: Remove a Unicode space 2021-03-28 23:39:06 +09:00
Hajime Hoshi
f0d7e16eb2 audio/internal/readerdriver: Refactoring 2021-03-28 23:27:47 +09:00
Hajime Hoshi
bf4c1e3d74 audio: Bug fix: Compile error for tests 2021-03-28 22:57:50 +09:00
Hajime Hoshi
f4efdd6355 audio/internal/go2cpp: Protect the functions by the lock correctly 2021-03-28 22:40:36 +09:00
Hajime Hoshi
f4b770eff6 audio/internal/readerdriver: Add Player.Err 2021-03-28 22:21:07 +09:00
Hajime Hoshi
b46cb324ed audio: Add audio/internal/readerdriver package 2021-03-28 18:34:16 +09:00
Hajime Hoshi
19702619ee ebiten: Bug fix: AdjustPosition could return Inf
Before the initialization finishes, AdjustPosition could return Inf
values and in this case AdjustPosition's returning values don't make
sense. Let's return NaN in this case.

Closes 
2021-03-27 18:46:14 +09:00
Hajime Hoshi
d415e9c771 internal/uidriver/glfw: Refactoring 2021-03-27 18:35:31 +09:00
Hajime Hoshi
88478fc80f Add the issue number to test.yml
Updates 
2021-03-27 05:01:39 +09:00