VirtualBox

Changeset 98369 in vbox


Ignore:
Timestamp:
Jan 31, 2023 3:47:51 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155606
Message:

FE/SDL: Made keyboard handling on Windows hosts work. We might switch to this on other platforms as well, but that needs testing first. ​bugref:9449

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp

    r98357 r98369  
    35623562     * Now we send the event. Apply extended and release prefixes.
    35633563     */
     3564#ifdef RT_OS_WINDOWS
     3565    gpKeyboard->PutUsageCode(SDL_GetScancodeFromKey(ev->keysym.sym), 0x07, ev->type == SDL_KEYUP ? TRUE : FALSE);
     3566#else
    35643567    if (keycode & 0x100)
    35653568        gpKeyboard->PutScancode(0xe0);
     
    35673570    gpKeyboard->PutScancode(ev->type == SDL_KEYUP ? (keycode & 0x7f) | 0x80
    35683571                                                 : (keycode & 0x7f));
     3572#endif /* RT_OS_WINDOWS */
    35693573}
    35703574
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette