Jump to content
Sign in to follow this  
Guest bartels

Keystrokes with DirectX

Recommended Posts

I want to have keyboard shortcuts in my gauges. To do this, I had a look at the DirectX SDK, in the DirectInput section. It looks quite complex to me because I am not an expert in Windows programming, so a little help would be really helpful.If someone has a little piece of code showing how a gauge can capture a keypress, it would definitely help.Thanks in advance !!Eric

Share this post


Link to post
Share on other sites

Hmmm maybe it's a darn stupid idea but would it be possible to use something like getch() in the code? Would just work with characters, though (at least I think)... :-roll

Share this post


Link to post
Share on other sites
Guest bartels

I tried that already, it doesn't work. There is however an example for keyboard access via DirectX in the DrectX SDK, which can be adapted to be used in a gauge.Arne Bartels

Share this post


Link to post
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
Sign in to follow this  

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