Page 1 of 1

Assigning controls or keys to the FMS cursor?

Posted: Sun Dec 22, 2019 10:19 pm
by paypal
So ideally I would like to be able to assign joystick inputs using FSUIPC, so that I can control the FMS cursor (left/right, push to select) with my joystick. If it's not possible to do it with FSUIPC, can I at least do it with keyboard controls?

Re: Assigning controls or keys to the FMS cursor?

Posted: Sun Dec 22, 2019 10:29 pm
by N4GIX
Have you tried using the little joystick under the FMS in the 2d popup?

Re: Assigning controls or keys to the FMS cursor?

Posted: Sun Dec 22, 2019 11:37 pm
by Ephedrin
paypal wrote:
Sun Dec 22, 2019 10:19 pm
So ideally I would like to be able to assign joystick inputs using FSUIPC, so that I can control the FMS cursor (left/right, push to select) with my joystick. If it's not possible to do it with FSUIPC, can I at least do it with keyboard controls?
I've used the mouse macro function of FSUIPC. works well except the animated thumbstick remains in the direction of the last movement... but that doesn't disturb its function.

Re: Assigning controls or keys to the FMS cursor?

Posted: Mon Dec 23, 2019 7:08 am
by JonathanBleeker
Working on adding this to the MVAMS

Re: Assigning controls or keys to the FMS cursor?

Posted: Mon Dec 23, 2019 5:06 pm
by N4GIX
Ephedrin wrote:
Sun Dec 22, 2019 11:37 pm
I've used the mouse macro function of FSUIPC. works well except the animated thumbstick remains in the direction of the last movement... but that doesn't disturb its function.
Ah, the joystick mouse routine is set up to send a value to a specific custom variable (either -1 or 1) when clicked, then send a value of 0 on button release to the same custom variable to allow the joystick to return to center position. For left movement of the joystick, this is the mouse script routine:

Code: Select all

      <Click Kind="LeftSingle+LeftRelease+LeftDrag">
        (M:Event) 'LeftSingle' scmp 0 == if{ -1 (>L:0x110EA,bool) 0x110EA (>L:EVENT,enum) 1 (>L:XMLSND2,bool) }
        (M:Event) 'LeftRelease' scmp 0 == (M:Event) 'LeftDrag' scmp 0 == or if{ 0 (>L:0x110EA,bool) }
      </Click>
      
The custom variable names are:

Code: Select all

-1 (>L:0x110EA,bool) //left
1 (>L:0x110EA,bool) //right
1 (>L:0x110EF,bool) //up
-1 (>L:0x110EF,bool) //down
Nota Bene: The entire XML script for the CCP controller is located here ..\panel\B350i\CCP_Popup.xml

Re: Assigning controls or keys to the FMS cursor?

Posted: Mon Dec 23, 2019 6:01 pm
by Ephedrin
Thanks Bill.

I hope to see a Linda module for the King Air soon anyway so I can stick with the macros for now easily =)