mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-30 05:18:13 +08:00
Added a note about WIN+V for future reference (thanks @orconut!)
This commit is contained in:
@@ -318,7 +318,10 @@ static SDL_Scancode WindowsScanCodeToSDLScanCode(LPARAM lParam, WPARAM wParam)
|
|||||||
* value set, however we cannot simply map these in VKeytoScancode() or we will be
|
* value set, however we cannot simply map these in VKeytoScancode() or we will be
|
||||||
* incorrectly handling the arrow keys on the number pad when NumLock is disabled
|
* incorrectly handling the arrow keys on the number pad when NumLock is disabled
|
||||||
* (which also generate VK_LEFT, VK_RIGHT, etc in that scenario). Instead, we'll only
|
* (which also generate VK_LEFT, VK_RIGHT, etc in that scenario). Instead, we'll only
|
||||||
* map them if none of the above special number pad mappings applied. */
|
* map them if none of the above special number pad mappings applied.
|
||||||
|
*
|
||||||
|
* WIN+V (clipboard history feature) can also send Ctrl-V without a scancode value set.
|
||||||
|
*/
|
||||||
if (code == SDL_SCANCODE_UNKNOWN) {
|
if (code == SDL_SCANCODE_UNKNOWN) {
|
||||||
code = VKeytoScancodeFallback(wParam);
|
code = VKeytoScancodeFallback(wParam);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user