Hello,
I'm trying to write a Thrust hold function, and am trying to prevent joystick throttle inputs while this mode is active.
#define JOYSTICK_AXIS 0x310A
BYTE FsuipcMem[1024];
BOOL FsuipcOK = FALSE;
static DWORD dwResult;
...
...
BYTE fcon=0;
FsuipcOK=FSUIPC_Open2(SIM_ANY, &dwResult, FsuipcMem, sizeof(FsuipcMem));
if(FsuipcOK)
{
fcon |= 1 << 3;
FSUIPC_Write(JOYSTICK_AXIS, 1, &fcon, &dwResult);
FSUIPC_Process(&dwResult);
FSUIPC_Close();
}
This is write is made once every few seconds.
The above code segment does indeed inhibit the Joystick throttle inputs.
But it also inhibits the elevator inputs as well. When I clear the bit they both come back.
I'd like only the throttle inputs inhibited.
Any idea what I'm doing wrong here ?
Thanks.
Regards.
Ernie.