MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / GetActionToDo

Method GetActionToDo

engine/Poseidon/Input/InputSubsystem.cpp:608–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606
607bool InputSubsystem::GetActionToDo(UserAction action, bool reset, bool checkFocus)
608{
609 const int idx = static_cast<int>(context_);
610 if (idx < 0 || idx >= kNumContexts)
611 return false;
612 return QueryProfileActionToDo(GInput, profiles_[idx], action, actionDoneByContext_[idx][action], reset, checkFocus);
613}
614
615bool InputSubsystem::IsKeyDown(SDL_Scancode sc) const
616{
617 int idx = static_cast<int>(sc);

Callers 14

SimulateMethod · 0.80
SimulateMethod · 0.80
PollMethod · 0.80
OnSimulateMethod · 0.80
OnSimulateMethod · 0.80
ProcessCheatsMethod · 0.80
ProcessMenuMethod · 0.80
ProcessActionsMethod · 0.80
SimulateHUDMethod · 0.80
OnSimulateMethod · 0.80

Calls 1

QueryProfileActionToDoFunction · 0.85

Tested by

no test coverage detected