MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / ResetKeyState

Method ResetKeyState

CryGame/ScriptObjectInput.cpp:391–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391int CScriptObjectInput::ResetKeyState(IFunctionHandler *pH)
392{
393 if(!m_pInput)
394 return pH->EndFunctionNull();
395
396 if (pH->GetParamCount() > 0)
397 {
398 char *szKeyName = 0;
399
400 if (pH->GetParam(1, szKeyName))
401 {
402 m_pInput->GetIKeyboard()->ClearKey(m_pInput->GetKeyID(szKeyName));
403
404 return pH->EndFunction();
405 }
406 }
407
408 m_pInput->ClearKeyState();
409
410 return pH->EndFunction();
411}
412/*! set the inverted mouse state
413 @param bEnable !=nil(enabled) nil(disabled)
414*/

Callers

nothing calls this directly

Calls 8

EndFunctionNullMethod · 0.80
GetIKeyboardMethod · 0.80
GetKeyIDMethod · 0.80
EndFunctionMethod · 0.80
GetParamCountMethod · 0.45
GetParamMethod · 0.45
ClearKeyMethod · 0.45
ClearKeyStateMethod · 0.45

Tested by

no test coverage detected