User Tag List

Results 1 to 4 of 4

Thread: Joystick 2 left and right trigger

  1. #1
    No Products Registered

    Join Date
    Jan 2017
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Joystick 2 left and right trigger

    i have a xbox 360 controller for cf2.5 using the joystick 2 object. does anyone know the code for pressing left trigger or right trigger?

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,558
    Mentioned
    133 Post(s)
    Tagged
    0 Thread(s)
    They use RawZ, and the values go from -996 (left) to 995 (right) - and 0 when both are pressed....the triggers are hard-connected like that, which is unavoidable. However, as if these numbers weren't odd enough, they are actually different depending on whether your player is on Win7 or Win10. On Win10, the numbers go from -995 (not -996) to 995. However, on a virgin Win10 installation where the user didn't manually install xbox gamepad drivers herself, the triggers will actually use Raw Z for the left trigger, and RawZrotation for the right trigger (EDIT: just remembered that this last bit is only true of the Xbox One gamepad, not the 360 gamepad).

    In other words, it's a mess. My advice is to use VACCiNE, which I built with the express purpose to clean up this mess (and other related gamepad messes) as much as I was able. It's in my sig.

  3. #3
    No Products Registered

    Join Date
    Jan 2017
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I used the vaccine, real good, but i cant figure out the codes

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,558
    Mentioned
    133 Post(s)
    Tagged
    0 Thread(s)
    If you're using VACCiNE, then you use the inputAccelerator & inputBrake alterable values of the VACinput object to find whether or not the player is pressing the triggers. They return a value between 0 and 1.

    For binary controls (ie. either totally pressed or totally unpressed), you could do something like this, which would let the triggers stop and start the blue orb thing:



    For analog controls, you could do something like this:



    (remembering that inputAccelerator & inputBrake will return a value between 0 and 1.....so if the trigger is held down one-third of the way, it'll return 0.333)

Similar Threads

  1. Replies: 5
    Last Post: 28th February 2017, 04:56 PM
  2. Replies: 4
    Last Post: 8th March 2015, 12:02 AM
  3. Limiting joystick to up down left right
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 26th April 2012, 11:21 AM
  4. Trigger and Teleporter
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd April 2010, 03:53 PM
  5. Animation trigger.
    By bunnyonion in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th May 2008, 06:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •