GetAsyncKeyState and VirtualKeys/special characters using JNA (JAVA)
问题 I am working on a two-way private chat that will work in a full screen game. This is required to let the user to type into a semi-transparent textbox at the top of the screen even when it doesn't have focus . Using the following code, I can detect ALL physical keys , but have a tough time with virtual keys. SHIFT is detected. 2 is detected. However Shift + 2 are detected both as separate keys (Even though [SHIFT+2] gives @ on my keyboard). IE: The program outputs both SHIFT, and 2, but not