Skip to content

Fix keyboard and mouse input on Windows ARM64#618

Open
andreban wants to merge 1 commit intonot-fl3:masterfrom
andreban:fix/windows-aarch64-input
Open

Fix keyboard and mouse input on Windows ARM64#618
andreban wants to merge 1 commit intonot-fl3:masterfrom
andreban:fix/windows-aarch64-input

Conversation

@andreban
Copy link
Copy Markdown

@andreban andreban commented Apr 5, 2026

On aarch64, neither the x86_64 nor x86 cfg guards matched, so SetWindowLongPtrA was never called to store the WindowsDisplay pointer in the window's user data slot. win32_wndproc always read 0, hit the early-return guard, and silently dropped every keyboard and mouse event.

Fix both affected sites (run() and set_fullscreen()) by extending the x86_64 cfg to also cover aarch64, which is likewise a 64-bit platform and uses SetWindowLongPtrA.

Closes #614

On aarch64, neither the x86_64 nor x86 cfg guards matched, so
SetWindowLongPtrA was never called to store the WindowsDisplay pointer
in the window's user data slot. win32_wndproc always read 0, hit the
early-return guard, and silently dropped every keyboard and mouse event.

Fix both affected sites (run() and set_fullscreen()) by extending the
x86_64 cfg to also cover aarch64, which is likewise a 64-bit platform
and uses SetWindowLongPtrA.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keyboard (and mouse) input silently dropped on Windows ARM64

1 participant