Created
June 26, 2020 17:38
-
-
Save korchoon/7dd0ac3882a9edd4eca8f01bf7104490 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DllImport("USER32.dll")] | |
public static extern short GetKeyState(int keycode); | |
var capsLocked = (GetKeyState(0x14) & 1) > 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment