ebiten/internal/ui
Hajime Hoshi 59295cc85f internal/ui: bug fix: input state should be reset for each tick, not frame
Before this change, input states were reset for each frame. When FPS
is bigger than TPS, the input state was reset more often than expected
and then some inputs were missing.

This change fixes the issue by resetting input states not for each frame
but for each tick.

This change also updates some comments of the input API.

Updates #2496
Closes #2501
2022-12-20 10:07:19 +09:00
..
api_windows.go internal/ui: bug fix: compile error 2022-12-13 02:38:45 +09:00
context.go internal/ui: bug fix: input state should be reset for each tick, not frame 2022-12-20 10:07:19 +09:00
globalstate.go ebiten: add RunGameWithOptions to specify graphics library 2022-12-09 21:27:31 +09:00
graphics.go ebiten: add RunGameWithOptions to specify graphics library 2022-12-09 21:27:31 +09:00
hideconsole_notwindows.go all: remove old // +build comments (#2431) 2022-11-03 12:55:14 +09:00
hideconsole_windows.go all: remove old // +build comments (#2431) 2022-11-03 12:55:14 +09:00
image.go internal/graphics: use flatten []float32 slice instead of [][]float32 2022-12-03 20:23:58 +09:00
input_glfw.go internal/ui: freeze the input state for each frame 2022-12-18 23:54:43 +09:00
input_js.go internal/ui: freeze the input state for each frame 2022-12-18 23:54:43 +09:00
input_mobile.go internal/ui: freeze the input state for each frame 2022-12-18 23:54:43 +09:00
input_nintendosdk.go internal/ui: freeze the input state for each frame 2022-12-18 23:54:43 +09:00
input.go internal/ui: bug fix: input state should be reset for each tick, not frame 2022-12-20 10:07:19 +09:00
keys_glfw.go all: remove old // +build comments (#2431) 2022-11-03 12:55:14 +09:00
keys_js.go internal/ui: remove old Edge browser support 2022-12-16 22:56:36 +09:00
keys_mobile.go all: remove old // +build comments (#2431) 2022-11-03 12:55:14 +09:00
keys.go internal/ui: freeze the input state for each frame 2022-12-18 23:54:43 +09:00
run_notsinglethread.go ebiten: add RunGameWithOptions to specify graphics library 2022-12-09 21:27:31 +09:00
run_singlethread.go ebiten: add RunGameWithOptions to specify graphics library 2022-12-09 21:27:31 +09:00
shader.go internal/ui: refactoring: reduce APIs 2022-12-09 00:05:22 +09:00
ui_android.go internal/graphicsdriver/opengl: remove SetGomobileGLContext 2022-11-13 15:07:14 +09:00
ui_glfw_darwin.go internal/ui: remove unused functions 2022-12-16 15:17:59 +09:00
ui_glfw_unix.go ebiten: add RunGameOptions.SkipTaskbar 2022-12-13 02:00:44 +09:00
ui_glfw_windows.go internal/ui: bug fix: care the case when CoInitializeEx returns S_FALSE 2022-12-13 13:01:32 +09:00
ui_glfw.go internal/ui: bug fix: input state should be reset for each tick, not frame 2022-12-20 10:07:19 +09:00
ui_ios.go internal/ui: bug fix: IsGL / SetUIView can be called before initialization is done 2022-11-15 01:53:20 +09:00
ui_js.go internal/ui: bug fix: input state should be reset for each tick, not frame 2022-12-20 10:07:19 +09:00
ui_mobile.go internal/ui: bug fix: input state should be reset for each tick, not frame 2022-12-20 10:07:19 +09:00
ui_nintendosdk.go internal/ui: bug fix: input state should be reset for each tick, not frame 2022-12-20 10:07:19 +09:00
ui.go internal/ui: freeze the input state for each frame 2022-12-18 23:54:43 +09:00
window_glfw.go all: remove old // +build comments (#2431) 2022-11-03 12:55:14 +09:00
window.go internal/ui: return a null Window on Xbox 2022-06-01 01:26:31 +09:00