MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / get_binded_action

Function get_binded_action

ogsr_engine/xrGame/xr_level_controller.cpp:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374EGameActions get_binded_action(int _dik)
375{
376 for (const auto& binding : g_key_bindings)
377 {
378 if (binding.m_keyboard[0] && binding.m_keyboard[0]->dik == _dik)
379 return binding.m_action->id;
380
381 if (binding.m_keyboard[1] && binding.m_keyboard[1]->dik == _dik)
382 return binding.m_action->id;
383 }
384 return kNOTBINDED;
385}
386
387void GetActionAllBinding(LPCSTR _action, char* dst_buff, int dst_buff_sz)
388{

Callers 15

IR_OnKeyboardPressMethod · 0.85
IR_OnKeyboardReleaseMethod · 0.85
IR_OnKeyboardHoldMethod · 0.85
IR_OnActivateMethod · 0.85
dik_to_bindFunction · 0.85
IR_OnKeyboardPressMethod · 0.85
IR_OnKeyboardReleaseMethod · 0.85
IR_OnKeyboardPressMethod · 0.85
IR_OnKeyboardHoldMethod · 0.85
IR_OnKeyboardPressMethod · 0.85
IR_OnKeyboardReleaseMethod · 0.85
OnKeyboardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected