Joystick 2 object LT nad RT buttons

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi All,

    I am using joystick 2 object but i cant find the back 2 buttons on my xbox controller. , does anybody know which number the rt and lt buttons are in the joystick object?

    kind regards

    There doesn't seem to be any way to detect the RT and LT triggers with the Joystick 2 object, but you can do this with the XBOX Gamepad object.

    There isn't a dedicated condition to check for the triggers, but you can use a "Compare two general values" condition to check the value of the left and right triggers by fetching their values (which can be from 0 to 100) under the "Triggers" section of the XBOX Gamepad object [Please login to see this link.].

  • You can get the triggers from The Joystick 2 object, but like most things with that object, it's not intuitive.

    You need to look for the RawZ input, which is used by both RT and LT, as below:

    RT: RawZ = 0 to 995

    LT: RawZ = 0 to -996


    I've simplified this, and many other parts of the Joystick 2 experience, in my Clickstore products VACCiNE and VACCiNE 2. Though the Clickstore is down currently. The first version of VACCiNE is free, and I'd upload it here, but I don't seem to actually have the files for it anymore. But I can show you a screenshot of the key events I use to make the triggers easier to manage. First, I collect the raw RawZ data from the Joystick 2 object, into an altVal that I call "JoyRawZ":

    Please login to see this picture.


    I then convert this into two altVals called rightTrigger and leftTrigger in the following way:

    Please login to see this picture.

    This will make rightTrigger and leftTrigger go from 0 to 1000 each, where 0 means unpressed and 1000 means fully pressed. You can easily convert that to a scale of 0 to 1 if you don't want to use feathering.

    Keep in mind that the triggers will affect each other, as Xbox designed them to function like an accelerator and a brake. So pressing one will diminish the other. Fully pressing both will make RawZ equal zero, as if neither are pressed.


    Having said all this, there's a new extension called SDL that aims to improve on Joystick 2. I've not used it yet, but I've heard nothing but good things about it. Unfortunately it's not on the Extension manager, but it's somewhere around here so you can google it.

    Please login to see this link.
    My Fusion Tools: Please login to see this link. | Please login to see this link. | Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!