Esempio n. 1
0
 public JoystickAxis(string axisName, float threshold)
 {
     this.axisName  = axisName;
     this.joystick  = InputUtility.AxisToJoystick(axisName);
     this.axis      = InputUtility.AxisToJoystickAxis(axisName);
     this.threshold = threshold;
 }
Esempio n. 2
0
 public JoystickAxis(Joysticks joystick, JoystickAxes axis, float threshold)
 {
     this.joystick  = joystick;
     this.axis      = axis;
     this.axisName  = InputUtility.JoystickInputToAxis(joystick, axis);
     this.threshold = threshold;
 }
Esempio n. 3
0
 public JoystickButton(KeyCode key)
 {
     this.key      = key;
     this.joystick = InputUtility.KeyToJoystick(key);
     this.button   = InputUtility.KeyToJoystickButton(key);
 }
Esempio n. 4
0
 public JoystickButton(Joysticks joystick, JoystickButtons button)
 {
     this.joystick = joystick;
     this.button   = button;
     this.key      = InputUtility.JoystickInputToKey(joystick, button);
 }