public InputAxis(KeyCode keyboardPositive, KeyCode keyboardNegative, XboxControllerAxes controllerAxis, MobileInputManager.MobileInputKeys mobilePositive, MobileInputManager.MobileInputKeys mobileNegative) { this.keyboardPositive = keyboardPositive; this.keyboardNegative = keyboardNegative; this.controllerAxis = controllerAxis; this.mobilePositive = mobilePositive; this.mobileNegative = mobileNegative; }
public InputAxis(KeyCode positive, KeyCode negative, XboxControllerAxes controllerAxis, int playerNum) { this.positive = positive; this.negative = negative; this.controllerAxis = controllerAxis; this.k_AxisToName = new Dictionary <int, string> { { (int)XboxControllerAxes.LeftstickHorizontal, "J" + playerNum + "_Horizontal_L" }, { (int)XboxControllerAxes.LeftstickVertical, "J" + playerNum + "_Vertical_L" }, { (int)XboxControllerAxes.DpadHorizontal, "J" + playerNum + "_Dpad_L" }, { (int)XboxControllerAxes.DpadVertical, "J" + playerNum + "_Dpad_L" }, { (int)XboxControllerAxes.RightstickHorizontal, "J" + playerNum + "_Horizontal_R" }, { (int)XboxControllerAxes.RightstickVertical, "J" + playerNum + "_Vertical_R" }, { (int)XboxControllerAxes.LeftTrigger, "J" + playerNum + "_Trigger_L" }, { (int)XboxControllerAxes.RightTrigger, "J" + playerNum + "_Trigger_R" }, }; }
public InputAxis(KeyCode positive, KeyCode negative, XboxControllerAxes controllerAxis) { this.positive = positive; this.negative = negative; this.controllerAxis = controllerAxis; }
public InputAxis(KeyCode p_negative, KeyCode p_positive, XboxControllerAxes p_controllerAxis) { Positive = p_positive; Negative = p_negative; ControllerAxis = p_controllerAxis; }