Changes between Version 2 and Version 3 of ButtonEditingTutorial


Ignore:
Timestamp:
Feb 5, 2015, 8:13:46 PM (10 years ago)
Author:
awollack
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ButtonEditingTutorial

    v2 v3  
    11== Buttons!==
    2 In order to to change the location of a systems button on the joystick, very specific steps must be taken in order to quell the chaos.  All of the button locations are found in the HumanInput class.  For example,
     2In order to to change the location of a systems button on the joystick, very specific steps must be taken in order to quell the chaos.  All of the button locations are found in the Human Input class.  For example,
    33
    44{{{public static Button lifterMoveUpButton = new JoystickButton(leftJoystick,1);}}}
     
    88{{{public static Button lifterMoveUpButton = new JoystickButton(rightJoystick,2);}}}
    99
    10 However, if you wanted to use one of the xbox triggers, you would change the joystick value to xbox, and change the button type to XboxTrigger.
     10However, if you wanted to use one of the xbox triggers, you would change the joystick value to xbox, and change the button type to Xbox Trigger.
    1111
    12 {{{public static Button lifterMoveUpButton = new XboxTrigger(xbox, );}}}
     12{{{public static Button xboxLeftTrigger =}}}
     13{{{new XboxTrigger(xboxController,XboxTrigger.TriggerConstant.LEFT_TRIGGER);}}}