예제 #1
0
 public JoystickAxis(string axisName, float threshold)
 {
     this.axisName  = axisName;
     this.joystick  = InputUtility.AxisToJoystick(axisName);
     this.axis      = InputUtility.AxisToJoystickAxis(axisName);
     this.threshold = threshold;
 }
예제 #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;
 }
예제 #3
0
 public JoystickButton(KeyCode key)
 {
     this.key      = key;
     this.joystick = InputUtility.KeyToJoystick(key);
     this.button   = InputUtility.KeyToJoystickButton(key);
 }
예제 #4
0
 public JoystickButton(Joysticks joystick, JoystickButtons button)
 {
     this.joystick = joystick;
     this.button   = button;
     this.key      = InputUtility.JoystickInputToKey(joystick, button);
 }