diff options
| author | Luc <145881229+Joaco9020@users.noreply.github.com> | 2026-11-23 19:22:42 -0300 |
|---|---|---|
| committer | sodove <mixercraft@gmail.com> | 2026-11-24 23:16:01 +0500 |
| commit | 49f7133d96c8f9cbee2f5e04132a0f47ed728c4a (patch) | |
| tree | 4397ba05197eab7383d0c12b83789c6450099e8c /tests/test_run_gpu_tests_python_assembler.py | |
| parent | 3aa975421d470b76da1aa986a91282c59e20d642 (diff) | |
gameinput: StopCallback and UnregisterCallback take the current-callback token
GAMEINPUT_CURRENT_CALLBACK_TOKEN_VALUE (all ones) names the callback that is
running on the calling thread, as the host's GameInput does (measured by
@Maraco91 on GameInput 0.2309): inside a callback, UnregisterCallback(CURRENT)
removes it and returns true and StopCallback(CURRENT) stops it; outside one the
token names nothing and UnregisterCallback returns false. The shim compared
it with registered tokens, matched none, and the callback kept firing.
call() records the running token in a thread_local, restored on return, and
both methods resolve the constant through it. gameinput_test drives a
self-cancelling reading callback through four button changes on the virtual
Xbox pad, once per method.
Finding: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7115359105
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/test_run_gpu_tests_python_assembler.py')
0 files changed, 0 insertions, 0 deletions