19,468
社区成员
发帖
与我相关
我的任务
分享
bool CGameEngine_Input::ReadKeyboard() {
if(DIERR_INPUTLOST==m_pKeyboardDevice->GetDeviceState (
sizeof(m_KeyBuffer),(LPVOID)m_KeyBuffer)){
m_pKeyboardDevice->Acquire ();//....
if(FAILED(m_pKeyboardDevice->GetDeviceState (
sizeof(m_KeyBuffer),(LPVOID)m_KeyBuffer))){
return false;
}
}
return true;
}