![]() |
|
|
|||||||
| Register | Wiki | Downloads | FAQ | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
| SimConnect Use this forum for all your SimConnect related discussions |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Disable joystick using event JOYSTICK_CALIBRATE
I want to disable the joystick input and control the aircraft from my program, I tried the event JOYSTICK_CALIBRATE, which can toggle joystick on/off. But since it "toggles" the joystick on and off, how can I know which state it is in? Without that information I cannot know whether I should send this event to FSX. Any help will be aprreciated.
|
|
#2
|
||||
|
||||
|
Quote:
The way to approach this is to mask (ie, block) the xxx_AXIS_SET commands. Do whatever calculations you want with the incoming values, then use the AILERON_SET, ELEVATOR_SET and RUDDER_SET commands to control the aircraft. Doug |
|
#3
|
|||
|
|||
|
Thank you. I just noticed that if I send JOYSTICK_CALIBREATE event, the buttons on the joystick are also disabled. That's not what I want. I will find how to block the input, thank you.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disable a joystick axis using Simconnect | grainboundary | SimConnect | 4 | 29 Aug 2011 15:52 |
| Direct connection b/w joystick and sim | Choobe | Gauges | 4 | 16 Aug 2011 19:03 |
| Reading the current joystick axis values (without waiting for user to move them)? | Simon853 | SimConnect | 3 | 22 Jun 2008 07:59 |
| Receiving mouse event with MapInputEventToClientEvent | some1 | SimConnect | 2 | 05 May 2008 16:11 |
| Subscribing to the FlightSaved event doesn't work? | Ben74 | SimConnect | 2 | 19 Feb 2008 14:25 |