MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / UpdateInputActions

Function UpdateInputActions

TombEngine/Specific/Input/Input.cpp:666–690  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664 }
665
666 void UpdateInputActions(bool allowAsyncUpdate, bool applyQueue)
667 {
668 // Don't update input data during frameskip.
669 if (allowAsyncUpdate || !g_Synchronizer.Locked())
670 {
671 ClearInputData();
672 UpdateRumble();
673 ReadKeyboard();
674 ReadMouse();
675 ReadGamepad();
676 }
677
678 DefaultConflict();
679
680 // Update action map.
681 for (auto& [actionID, action] : ActionMap)
682 action.Update(Key(action.GetID()));
683
684 if (applyQueue)
685 ApplyActionQueue();
686
687 // Additional handling.
688 HandleHotkeyActions();
689 SolveActionCollisions();
690 }
691
692 void ClearAllActions()
693 {

Callers 5

UpdateExclusiveMethod · 0.85
DoPauseMenuMethod · 0.85
CallInventoryMethod · 0.85
HandleControlsFunction · 0.85

Calls 13

ClearInputDataFunction · 0.85
UpdateRumbleFunction · 0.85
ReadKeyboardFunction · 0.85
ReadMouseFunction · 0.85
ReadGamepadFunction · 0.85
DefaultConflictFunction · 0.85
ApplyActionQueueFunction · 0.85
HandleHotkeyActionsFunction · 0.85
SolveActionCollisionsFunction · 0.85
LockedMethod · 0.80
KeyFunction · 0.70
UpdateMethod · 0.45

Tested by

no test coverage detected