Changes between Version 1 and Version 2 of ButtonEditingTutorial


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

--

Legend:

Unmodified
Added
Removed
Modified
  • ButtonEditingTutorial

    v1 v2  
    33
    44{{{public static Button lifterMoveUpButton = new JoystickButton(leftJoystick,1);}}}
     5
     6would be the button representing the lifterMoveUp action.  In order to change the physical location of the button(i.e. A button to B button on a different joystick), you would change the joystick location and the button number.  Commented values for available buttons are available in the code below the main buttons.   
     7
     8{{{public static Button lifterMoveUpButton = new JoystickButton(rightJoystick,2);}}}
     9
     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 XboxTrigger.
     11
     12{{{public static Button lifterMoveUpButton = new XboxTrigger(xbox, );}}}