DirectInput - Set Device State - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


DirectInput - Set Device State

Rocky75Rocky75 Posts: 1Member
This is my first post on this forum. I am a C++ developer dedicated to flight simulation. I know how DirectInput works and I can read device state, which was useful to read the joystick axes and buttons.
Today I need something else: I need to SET the joystick state to let the flight simulator "believe" the joystick is moving, and I couldn't find a way to do this. I found some information about hooking DirectX, but I don't really like this kind of solution. Is there a "clean" way of doing this?

If you want to know why I want to do this, I can explain:
I plan to develop a specific module for Airbus aircraft simulation. In these aircrafts, the 2 pilots have sidesticks, very similar to PC joysticks. If they BOTH move their stick, the sum of the 2 inputs is provided to the flight controls computers. I would like to simulate this by reading 2 real joystick inputs, sum the 2 inputs, and SET this as the input of a 'virtual' joystick that my flight simulator will read to control the aircraft. Do you think this is possible?

Thanks for any help :)


Sign In or Register to comment.