ebiten/internal/ui
Hajime Hoshi 6016c934f5 internal/ui: bug fix: setRunning(true) must be called after the main thread is set
Some functions like ebiten.SetCursorMode use `running` to detect
whether the game starts or not. If the game starts, the main thread
must exist, but there was a timing when `running` was true but the
main thread didn't exist.

This change fixes this issue by changing the timing to call
`setRunning(true)` after the main thread initialization and before
`initOnMainThread`. `initOnMainThread` assumes that `running` is
true.

Closes #2742
2023-09-02 04:26:38 +09:00
..
api_windows.go internal/ui: bug fix: compile error 2022-12-13 02:38:45 +09:00
context.go internal/ui: refactoring: allow slices in InputState 2023-01-22 01:28:57 +09:00
egl_nintendosdk.go all: fix typos (#2558) 2023-01-28 19:06:38 +09:00
globalstate.go ebiten: add RunGameWithOptions to specify graphics library 2022-12-09 21:27:31 +09:00
graphics.go internal/ui: bug fix: the env variable should be used only when the library is not specified 2022-12-29 15:44:55 +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/ui: compute antialias region size correctly. (#2681) 2023-06-24 02:26:18 +09:00
init_nintendosdk.cpp internal/ui: bug fix: compile failures with -tags=nintendosdk 2023-01-03 20:12:36 +09:00
init_nintendosdk.h internal/ui: rename ebitengine_Init -> ebitengine_Initialize 2023-01-03 19:23:38 +09:00
input_glfw.go internal/ui: rename t -> mainThread 2022-12-28 15:59:53 +09:00
input_js.go internal/ui: bug fix: wrong mouse cursor movement calculation 2023-04-10 15:26:28 +09:00
input_mobile.go internal/ui: refactoring: allow slices in InputState 2023-01-22 01:28:57 +09:00
input_nintendosdk.cpp internal/ui: use -overlay to provide the implementation for Nintendo Switch 2023-01-01 01:35:05 +09:00
input_nintendosdk.go internal/ui: refactoring: allow slices in InputState 2023-01-22 01:28:57 +09:00
input_nintendosdk.h internal/ui: bug fix: compile error on the testing CI 2023-01-01 18:01:14 +09:00
input.go ebiten: implement DroppedFiles to replace AppendDroppedFiles 2023-01-25 14:27:11 +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: stop panicking at Key.String 2022-12-25 00:33:08 +09:00
notprofile_nintendosdk.go internal/ui: use -overlay to provide the implementation for Nintendo Switch 2023-01-03 19:10:15 +09:00
profile_nintendosdk.go internal/ui: use -overlay to provide the implementation for Nintendo Switch 2023-01-03 19:10:15 +09:00
run_glfw_notsinglethread.go internal/ui: bug fix: setRunning(true) must be called after the main thread is set 2023-09-02 04:26:38 +09:00
run_glfw_singlethread.go all: separate the rendering thread from the main thread 2022-12-30 22:57:34 +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 all: fix typos (#2558) 2023-01-28 19:06:38 +09:00
ui_glfw_unix.go all: update comments 2023-02-07 12:05:43 +09:00
ui_glfw_windows.go all: fix typos (#2558) 2023-01-28 19:06:38 +09:00
ui_glfw.go internal/ui: a more robust fix for the unfocused-window loop 2023-04-01 03:37:44 +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 ebiten: implement DroppedFiles to replace AppendDroppedFiles 2023-01-25 14:27:11 +09:00
ui_mobile.go internal/ui: refactoring: allow slices in InputState 2023-01-22 01:28:57 +09:00
ui_nintendosdk.go internal/ui: refactoring: allow slices in InputState 2023-01-22 01:28:57 +09:00
ui.go internal/ui: freeze the input state for each frame 2022-12-18 23:54:43 +09:00
window_glfw.go internal/ui: merge a window-closing state into an input state 2023-01-21 23:42:48 +09:00
window.go internal/ui: merge a window-closing state into an input state 2023-01-21 23:42:48 +09:00