summaryrefslogtreecommitdiffhomepage
path: root/dinput
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-05 22:09:37 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-06 04:03:38 +0200
commitaac3d4b4578585b8b3f96685502f2941d492ee1a (patch)
treeb2c75365a41d06c90cb6d74012283f232ed921de /dinput
parent356ec58ae0d51cc04b2d478fdc21b112f7cafb50 (diff)
{dinput,logic,..}: cleanup
Diffstat (limited to 'dinput')
-rw-r--r--dinput/keybinding-worker.cpp7
-rw-r--r--dinput/keybinding-worker.hpp2
2 files changed, 5 insertions, 4 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;
diff --git a/dinput/keybinding-worker.hpp b/dinput/keybinding-worker.hpp
index c2d571f8..c4b441b8 100644
--- a/dinput/keybinding-worker.hpp
+++ b/dinput/keybinding-worker.hpp
@@ -23,8 +23,8 @@
struct OPENTRACK_DINPUT_EXPORT Key
{
- BYTE keycode;
QString guid;
+ int keycode;
bool shift;
bool ctrl;
bool alt;