@@ -141,24 +141,24 @@ void HumanCharacterController::InputEvent(KeyInputEvent& inputEvent)
141141 if (mCharacter == nullptr || inputEvent.mKeycode == eKeycode_null)
142142 return ;
143143
144- if (mInputActionsMapping .mControllerType != eInputControllerType_Keyboard)
144+ if (mInputs .mControllerType != eInputControllerType_Keyboard)
145145 {
146146 return ;
147147 }
148148
149149 ePedestrianAction action = ePedestrianAction_null;
150150 if (mCharacter ->IsCarPassenger ())
151151 {
152- auto iaction = mInputActionsMapping .mKeysInCarActions .find (inputEvent.mKeycode );
153- if (iaction != mInputActionsMapping .mKeysInCarActions .end ())
152+ auto iaction = mInputs .mKeysInCarActions .find (inputEvent.mKeycode );
153+ if (iaction != mInputs .mKeysInCarActions .end ())
154154 {
155155 action = iaction->second ;
156156 }
157157 }
158158 else
159159 {
160- auto iaction = mInputActionsMapping .mKeysOnFootActions .find (inputEvent.mKeycode );
161- if (iaction != mInputActionsMapping .mKeysOnFootActions .end ())
160+ auto iaction = mInputs .mKeysOnFootActions .find (inputEvent.mKeycode );
161+ if (iaction != mInputs .mKeysOnFootActions .end ())
162162 {
163163 action = iaction->second ;
164164 }
@@ -189,22 +189,22 @@ void HumanCharacterController::InputEvent(GamepadInputEvent& inputEvent)
189189 if (inputEvent.mGamepad < MAX_GAMEPADS)
190190 {
191191 eInputControllerType controllerType = gamepadControllers[inputEvent.mGamepad ];
192- if (controllerType != mInputActionsMapping .mControllerType )
192+ if (controllerType != mInputs .mControllerType )
193193 return ;
194194
195195 ePedestrianAction action = ePedestrianAction_null;
196196 if (mCharacter ->IsCarPassenger ())
197197 {
198- auto iaction = mInputActionsMapping .mGpButtonsInCarActions .find (inputEvent.mButton );
199- if (iaction != mInputActionsMapping .mGpButtonsInCarActions .end ())
198+ auto iaction = mInputs .mGpButtonsInCarActions .find (inputEvent.mButton );
199+ if (iaction != mInputs .mGpButtonsInCarActions .end ())
200200 {
201201 action = iaction->second ;
202202 }
203203 }
204204 else
205205 {
206- auto iaction = mInputActionsMapping .mGpButtonsOnFootActions .find (inputEvent.mButton );
207- if (iaction != mInputActionsMapping .mGpButtonsOnFootActions .end ())
206+ auto iaction = mInputs .mGpButtonsOnFootActions .find (inputEvent.mButton );
207+ if (iaction != mInputs .mGpButtonsOnFootActions .end ())
208208 {
209209 action = iaction->second ;
210210 }
0 commit comments