mirror of
https://github.com/debauchee/barrier.git
synced 2025-06-24 13:37:00 +02:00
Added "/analyze" flag for compile in order to activate Code Analysis in Visual Studio 2008+. Resolved some of these warnings.
This commit is contained in:
parent
ba7ec582c3
commit
9face38556
12 changed files with 1419 additions and 1381 deletions
|
@ -868,7 +868,10 @@ void
|
|||
CMSWindowsKeyState::pollPressedKeys(KeyButtonSet& pressedKeys) const
|
||||
{
|
||||
BYTE keyState[256];
|
||||
GetKeyboardState(keyState);
|
||||
if (!GetKeyboardState(keyState)) {
|
||||
LOG((CLOG_ERR "GetKeyboardState returned false on pollPressedKeys"));
|
||||
return;
|
||||
}
|
||||
for (KeyButton i = 1; i < 256; ++i) {
|
||||
if ((keyState[i] & 0x80) != 0) {
|
||||
pressedKeys.insert(i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue