// ------------------- static private InputAxisList GetControlFreakAxes() { InputAxisList axes = new InputAxisList(5 + (GamepadManager.MAX_JOYSTICKS * GamepadManager.MAX_INTERNAL_AXES)); // Add mouse definit axes.Add(new InputAxis() { name = InputRig.CF_EMPTY_AXIS, sensitivity = 1f, type = AxisType.KeyOrMouseButton }); axes.Add(new InputAxis() { name = InputRig.CF_MOUSE_DELTA_X_AXIS, sensitivity = 1f, type = AxisType.MouseMovement, axis = 1 }); axes.Add(new InputAxis() { name = InputRig.CF_MOUSE_DELTA_Y_AXIS, sensitivity = 1f, type = AxisType.MouseMovement, axis = 2 }); axes.Add(new InputAxis() { name = InputRig.CF_SCROLL_WHEEL_X_AXIS, sensitivity = 1f, type = AxisType.MouseMovement, axis = 3 }); axes.Add(new InputAxis() { name = InputRig.CF_SCROLL_WHEEL_Y_AXIS, sensitivity = 1f, type = AxisType.MouseMovement, axis = 4 }); // Add gamepad definitions... for (int i = 0; i < GamepadManager.MAX_JOYSTICKS; i++) { for (int j = 0; j < GamepadManager.MAX_INTERNAL_AXES; j++) { axes.Add(new InputAxis() { name = GamepadManager.GetJoyAxisName(i, j), dead = 0.2f, sensitivity = 1f, type = AxisType.JoystickAxis, axis = (j + 1), joyNum = (i + 1) }); } } return(axes); }