diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-05 22:09:37 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-06 04:03:38 +0200 |
commit | aac3d4b4578585b8b3f96685502f2941d492ee1a (patch) | |
tree | b2c75365a41d06c90cb6d74012283f232ed921de /dinput/keybinding-worker.cpp | |
parent | 356ec58ae0d51cc04b2d478fdc21b112f7cafb50 (diff) |
{dinput,logic,..}: cleanup
Diffstat (limited to 'dinput/keybinding-worker.cpp')
-rw-r--r-- | dinput/keybinding-worker.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dinput/keybinding-worker.cpp b/dinput/keybinding-worker.cpp index a67e8470..608f8fc1 100644 --- a/dinput/keybinding-worker.cpp +++ b/dinput/keybinding-worker.cpp @@ -88,8 +88,8 @@ KeybindingWorker& KeybindingWorker::make() void KeybindingWorker::run() { - BYTE keystate[256] = {0}; - BYTE old_keystate[256] = {0}; + unsigned char keystate[256] = {0}; + unsigned char old_keystate[256] = {0}; while (!should_quit) { @@ -101,7 +101,8 @@ void KeybindingWorker::run() { const HRESULT hr = dinkeyboard->GetDeviceState(256, (LPVOID)keystate); - if (hr != DI_OK) { + if (hr != DI_OK) + { qDebug() << "Tracker::run GetDeviceState function failed!" << GetLastError(); Sleep(25); continue; |