Jump to content

SimConnect Shift / Ctrl Key Combination?


Recommended Posts

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...

 

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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..

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...