/////////////////////////////////////////////////////////////////////
| 1414 | |
| 1415 | ////////////////////////////////////////////////////////////////////////// |
| 1416 | void 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 | ////////////////////////////////////////////////////////////////////////// |
| 1439 | int CXKeyboard::GetKeyPressedCode() |
no outgoing calls
no test coverage detected