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

Method ClearKey

CryInput/XKeyboard.cpp:1416–1436  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

1414
1415//////////////////////////////////////////////////////////////////////////
1416void CXKeyboard::ClearKey(int p_key)
1417{
1418 unsigned char cDik=XKEY2DIK(p_key);
1419#ifndef PS2
1420 if (cDik<256 && cDik >=0)
1421 {
1422 m_cOldKeysState[cDik]=m_cKeysState[cDik];
1423 m_cKeysState[cDik]=NULL;
1424 }
1425#else
1426
1427 //PS2 SPECIFIC CODE
1428
1429 if(cDik<0)
1430 return;
1431
1432 ASCIPRESSEDOLD[cDik]=ASCIPRESSED[cDik];
1433 ASCIPRESSED[cDik]=0;
1434
1435#endif
1436}
1437
1438//////////////////////////////////////////////////////////////////////////
1439int CXKeyboard::GetKeyPressedCode()

Callers 2

SetActionMapMethod · 0.45
ResetKeyStateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected