Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hello,

 

i try to read a Joistick Button press in SIOC.

For that i fond here this entry for SIOC for the Joistick.

 

Var 2 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4

 

But var 2 does not Show anything, only 0.

 

Did i anything wrong?

 

Matthias

Posted

Hi,

 

1. your line shows the variable as FSUIPC_OUT, so it is declared in SIOC as an Offset where you have to write to and you will not be able to read the status of this Offset

2. did you check the FSUIPC documentation? It clearly describes the function of this Offset.

3340 36 This area is used for externally signalled “joystick button” control, a set of 288 "virtual buttons". Each DWORD or 32 bits represents one “joystick” with 32 buttons.
If an external program sets or clears a bit in any of these 9 DWORDS the “Buttons” page in FSUIPC will register the change as a button operation on one of Joystick numbers 64 to 73 
(corresponding to the 9 DWORDs). So, FSUIPC can be used to program whatever actions the user wants.
See also offset 29F0

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.