summaryrefslogtreecommitdiff
path: root/platform/osx/SCsub
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2021-08-04 21:22:11 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2021-08-13 11:45:50 +0200
commite745088f1f953af867717574ddf8239be459ee90 (patch)
treec982066debf48fdde590e243220a6324712ea3a9 /platform/osx/SCsub
parentabdfbef07516beae019643ba6cea000067b478cb (diff)
Switch to input buffering on Android
Key, touch and joystick events will be passed directly from the UI thread to Godot, so they can benefit from agile input flushing. As another consequence of this new way of passing events, less Java object are created at runtime (`Runnable`), which is good since the garbage collector needs to run less. `AndroidInputHandler` is introduced to have a smaller cross-thread surface. `main_loop_request_go_back()` is removed in favor just inline calling `send_window_event()` at the most caller's convenience (i.e., leveraging the new `p_deferred`` parameter as appropriate). Lastly, `get_mouse_position()` and `get_mouse_button_state()` now just call through `Input` to avoid the need of sync of mouse data tracked on the UI thread.
Diffstat (limited to 'platform/osx/SCsub')
0 files changed, 0 insertions, 0 deletions