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

7406 Commits

Author SHA1 Message Date
Hajime Hoshi
f23dadb8ae
Add internal/gamepaddb ()
This is basically a revert of 93a156a718.
This implements parsing the SDL gamepad mappings by Ebiten instead
of GLFW, so that Ebiten can handle parsing errors completely.

Closes 
2021-09-11 22:46:05 +09:00
Hajime Hoshi
28963a66ee internal/uidriver/glfw: Update the game controller DB 2021-09-11 19:12:48 +09:00
Hajime Hoshi
37771717cc internal/uidriver: Bug fix: Potential memory leak by [:0]
Updates 
2021-09-10 02:17:29 +09:00
Hajime Hoshi
dbe101a8ef internal/restorable: Remove draw-triangles-history items explicitly
Updates 
2021-09-09 12:57:50 +09:00
Hajime Hoshi
106ff7a84b internal/ui: Reduce calls of glfw.GetMonitors
Updates 
2021-09-09 11:14:08 +09:00
Hajime Hoshi
5ac357959c internal/graphicscommand: Bug fix: memory leak at q.commands
Apparently, the part of a slice between len and cap-1 still holds
references. Release them explicitly.

Closes 
2021-09-09 04:28:31 +09:00
Hajime Hoshi
8f857daf3e internal/restorable: Bug fix: Forbid NewImage before the graphics driver is ready 2021-09-09 03:58:58 +09:00
Hajime Hoshi
a3570331dd internal/restorable: Delay initializing emptyImage
Now NeedsRestorable can always return a correct value.
2021-09-09 03:27:22 +09:00
Hajime Hoshi
f08aea7b9c ebiten: Update comments about CurrentFPS and CurrentTPS 2021-09-08 22:45:26 +09:00
Hajime Hoshi
65943d4bad internal/graphicsdriver/metal: Disable presentsWithTransaction on iOS
Closes 
2021-09-07 00:02:58 +09:00
Hajime Hoshi
777e8f2759 cmd/ebitenmobile: Update Gomobile version for Arm macOS
Closes 
2021-09-06 12:20:20 +09:00
Hajime Hoshi
f7738b812b internal/mipmap: Skip color scaling when possible 2021-09-06 12:11:52 +09:00
Hajime Hoshi
7f3bd1bbd5 internal/jsutil: Remove unused functions 2021-09-04 21:01:21 +09:00
Hajime Hoshi
64ec626ca6 internal/uidriver/js: Optimize isFocused() by using bind 2021-09-04 19:20:24 +09:00
Hajime Hoshi
58ea710a84 internal/affine: Rename UnsafeElements -> Elements as this is no longer unsafe 2021-09-04 18:08:27 +09:00
Hajime Hoshi
8c9ec8fc9f interna/affine: Avoid UnsafeElements at At
Updates 
2021-09-04 17:55:51 +09:00
Hajime Hoshi
df710a5c63 internal/affine: Change UnsafeElements to take arguments
This will enable to suppress unnecessary array allocations in the
future.

Updates 
2021-09-04 17:38:30 +09:00
Hajime Hoshi
65e148700f internal/jsutil: Optimize byteLength calls by using bind 2021-09-04 16:51:35 +09:00
Trevor Slocum
ffe9a6f72d
Minor style fixes (early returns) () 2021-09-04 00:22:37 +09:00
Hajime Hoshi
e5c051a437 internal/affine: Refactoring: UnsafeScaleElements -> scaleElements 2021-09-03 23:56:55 +09:00
Trevor Slocum
3406430956
Minor typo fixes () 2021-09-01 17:17:54 +09:00
Hajime Hoshi
2c5033e901 .github/workflow: Skip PRs at sourcehutbuild.yml 2021-09-01 11:59:46 +09:00
Hajime Hoshi
d5ce0dbd90 internal/uidriver/glfw: Bug fix: Disable the sticky mode on FPSModeVsyncOffMinimum
Closes 
2021-08-31 11:43:11 +09:00
Hajime Hoshi
0e5dca9453 .github/workflows, internal/uidriver/glfw: Use curl's --remote-name 2021-08-28 16:37:10 +09:00
Hajime Hoshi
eae40c90bb internal/uidriver/glfw: Enable to update gamecontrollerdb.txt 2021-08-28 16:09:14 +09:00
Hajime Hoshi
8646a54b19 .github/workflows: Refactoring 2021-08-28 03:48:40 +09:00
Hajime Hoshi
fa0efea4a4 internal/png: Regenerate 2021-08-28 03:14:54 +09:00
Hajime Hoshi
9a63bcb9fe .github/workflows: Refactoring 2021-08-28 02:57:32 +09:00
Hajime Hoshi
4cbb3e54c1 .github/workflow: Bug fix: Need .exe for Windows
Updates 
2021-08-28 02:45:04 +09:00
Hajime Hoshi
d378c12107 .github/workflow: Add an atomic align check
Closes 
2021-08-28 02:34:37 +09:00
Hajime Hoshi
e9a4d99f6a .github/workflows: Bug fix: Specify a git commit ID
Updates 
2021-08-27 12:39:07 +09:00
Hajime Hoshi
4b87d0f783 .github/workflows: Bug fix: Report time-out correctly
Updates 
2021-08-27 12:22:30 +09:00
Hajime Hoshi
6cc64e9b1e Use Sourcehut APIs to use builds.sr.ht
Closes 
2021-08-27 03:21:26 +09:00
Hajime Hoshi
91a7288027 internal/atlas: Better pixel allocations
Updates 
Updates 
2021-08-26 03:35:21 +09:00
Hajime Hoshi
40d2dd3ba7 internal/uidriver/glfw: Update comments
Updates 
2021-08-26 02:05:30 +09:00
Hajime Hoshi
9c321375c9 internal/atlas: Bug fix: pix was reset at a wrong timing
Closes 
2021-08-25 22:10:57 +09:00
Hajime Hoshi
d1c764640d internal/glfw, internal/graphicsdriver/opengl/gl: Use the last byte to detect a bool
When a C function returns a bool value, only the first byte of a
uintptr value matters. When we want to get a bool value from a C
function, filter this for sefety.
2021-08-25 02:09:55 +09:00
Hajime Hoshi
2e2813ab78 Use 'x' to specify Go versions 2021-08-23 23:46:37 +09:00
Hajime Hoshi
a1e522e838 ebiten: Update comments 2021-08-23 22:13:46 +09:00
Hajime Hoshi
bafd263c85 Add divVerent to AUTHORS 2021-08-23 21:45:42 +09:00
divVerent
7b11377bce
ebiten: Support updating the gamepad mapping ()
This is only supported on desktops yet (on mobile standard layout isn't
implemented yet, and on the web this is the browser's responsibility).

Closes 
2021-08-23 21:44:49 +09:00
Hajime Hoshi
35deb53624 internal/graphicsdriver/metal: Rename files to remove +build comments 2021-08-23 02:06:09 +09:00
Hajime Hoshi
8b269d4358 Update the dependencies 2021-08-22 18:39:28 +09:00
Hajime Hoshi
aec74aa39b Remove flock from the tests 2021-08-22 18:34:35 +09:00
Hajime Hoshi
63c74ca5bf Update Oto to v2.0.0-alpha.2 2021-08-22 16:26:49 +09:00
Hajime Hoshi
1d919f7891 Update Oto 2021-08-22 03:12:21 +09:00
Hajime Hoshi
975159b86a Bug fix: Compile error on Android 2021-08-22 02:34:13 +09:00
Hajime Hoshi
21e0768937 audio/internal/reader: Move the driver part to Oto v2
Closes 
2021-08-22 02:10:39 +09:00
Hajime Hoshi
7a5254f48f audio: Refactoring 2021-08-22 00:36:28 +09:00
Hajime Hoshi
88da1bb23f audio: Bug fix: Compile failure on JS/Wasm 2021-08-22 00:29:05 +09:00