8 protected float m_fGamepadCameraSpeed;
11 protected float m_fGamepadCameraSpeedBoosted;
13 protected bool m_bIsBoosted;
14 protected bool m_bIsUsingGamepad;
25 protected void OnInputDeviceIsGamepad(
bool isGamepad)
34 protected void ManualCameraSpeedToggle()
39 m_bIsBoosted = !m_bIsBoosted;
82 param.multiplier *= m_fGamepadCameraSpeed;
86 param.multiplier *= m_fGamepadCameraSpeedBoosted;
88 float lateral =
GetInputManager().GetActionValue(
"ManualCameraMoveLateral");
89 float vertical =
GetInputManager().GetActionValue(
"ManualCameraMoveVertical");
90 float longitudinal =
GetInputManager().GetActionValue(
"ManualCameraMoveLongitudinal");
92 if (lateral == 0 && vertical == 0 && longitudinal == 0)
101 override bool EOnCameraInit()
103 GetGame().OnInputDeviceIsGamepadInvoker().Insert(OnInputDeviceIsGamepad);
105 GetInputManager().AddActionListener(
"ManualCameraSpeedToggle", EActionTrigger.DOWN, ManualCameraSpeedToggle);
112 override void EOnCameraExit()
114 GetGame().OnInputDeviceIsGamepadInvoker().Remove(OnInputDeviceIsGamepad);
116 GetInputManager().RemoveActionListener(
"ManualCameraSpeedToggle", EActionTrigger.DOWN, ManualCameraSpeedToggle);