ui.backend.windows: GetKeyboardState returns 0 on error

clean-macosx-x86-32
Doug Coleman 2019-05-02 07:55:40 -05:00
parent 08aa27a112
commit c14e571429
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ CONSTANT: exclude-keys-wm-char
256 <byte-array> :> keyboard-state 256 <byte-array> :> keyboard-state
4 <byte-array> :> chars 4 <byte-array> :> chars
lParam -16 shift 0xff bitand :> scan-code lParam -16 shift 0xff bitand :> scan-code
keyboard-state GetKeyboardState win32-error<>0 keyboard-state GetKeyboardState win32-error=0/f
VK_CONTROL VK_CAPITAL [ 0 swap keyboard-state set-nth ] bi@ VK_CONTROL VK_CAPITAL [ 0 swap keyboard-state set-nth ] bi@
wParam scan-code keyboard-state chars 2 0 ToUnicode dup win32-error=0/f wParam scan-code keyboard-state chars 2 0 ToUnicode dup win32-error=0/f
1 <= [ 1 <= [