June 21, 201411 yr Is there a way to detect key combinations when using SimConnect? I'm looking though the Keyboard Key Strings page in the SimConnect SDK on the MS site and I see Shift and Tab but I can't seem to put these together to get a Shift_Tab detection. Is there a trick to using key combinations? SHIFT_TAB does not work. SHIFTTAB does not work. hr = SimConnect_MapInputEventToClientEvent(hSimConnect, INPUT0, "SHIFT_TAB", EVENT3); Thank you for any help... Ralph Freshour www.GMTPilots.com
June 22, 201411 yr The SDK has this example: // Ctrl, shift, lower case a, has been hit hr = SimConnect_MapInputEventToClientEvent(hSimConnect, INPUT_1, "shift+ctrl+a", EVENT_2); ... For the keyboard the input definition can include a maximum of two modifiers (Shift, Ctrl, Alt) and two keys (case sensitive). It's always worth reading the SDK before asking for help. Gerry Howard
June 22, 201411 yr Author Hi Gerry Believe me, I have been digging into the SDK to find that answer...thanks very much for your reply and help. Ralph Freshour www.GMTPilots.com
June 22, 201411 yr You make my point foe me that you haven't been digging into the SDK. The SDK SimConnect API Reference has a section that lists all the API functions, including SimConnect_MapInputEventToClientEvent. It then provides a lkink to details beginning how to use it begining with "The SimConnect_MapInputEventToClientEvent function is used to connect input events (such as keystrokes, joystick or mouse movements) with the sending of appropriate event notifications". this includesollows full details on how to use it - including key strokes. Surely that's what you should read to begin.. As I said, it's always worth reading the SDK before asking other to read it for you.. Gerry Howard
Create an account or sign in to comment