8000
  • Fix keyboard and mouse input on Windows ARM64 by andreban · Pull Request #618 · not-fl3/miniquad · GitHub
    [go: up one dir, main page]

    Skip to content

    Fix keyboard and mouse input on Windows ARM64 - #618

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

    andreban wants to merge 1 commit into
    not-fl3:masterfrom
    andreban:fix/windows-aarch64-input

    Conversation

    @andreban
    @andreban andreban commented Apr 5, 2026
    Copy link
    Copy Markdown

    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.
    < 752F /div>
    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

    0