FSDeveloper Community

Go Back   FSDeveloper Community > Microsoft Flight Simulator development > SimConnect > SimConnect

SimConnect Use this forum for all your SimConnect related discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 02 May 2012, 10:57
Koalar Koalar is offline
  china
Join Date: Dec 2008
Posts: 5
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.
Reply With Quote
  #2  
Old 02 May 2012, 12:39
ddawson's Avatar
ddawson ddawson is offline
  canada
Location: Ottawa, Canada
Join Date: Sep 2006
Posts: 274
Quote:
Originally Posted by Koalar View Post
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.

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
Reply With Quote
  #3  
Old 02 May 2012, 13:07
Koalar Koalar is offline
  china
Join Date: Dec 2008
Posts: 5
Quote:
Originally Posted by ddawson View Post
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
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -4. The time now is 00:53.

Kirsch designed by Andrew & Austin


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.