Style fixes

This commit is contained in:
Roland Winklmeier
2015-06-18 22:58:11 +02:00
committed by Mathew Sutcliffe
parent c31a383547
commit 95fe93a83c
2 changed files with 24 additions and 22 deletions

View File

@@ -100,10 +100,12 @@ namespace BlackInput
keyEvent(keyCode, isPressed); keyEvent(keyCode, isPressed);
} }
if (!found) { if (!found)
{
int fd = fileInput->handle(); int fd = fileInput->handle();
int version = 0; int version = 0;
if ((ioctl(fd, EVIOCGVERSION, &version) < 0) || (((version >> 16) & 0xFF) < 1)) { if ((ioctl(fd, EVIOCGVERSION, &version) < 0) || (((version >> 16) & 0xFF) < 1))
{
qWarning("CKeyboardLinux: Removing dead input device %s", qPrintable(fileInput->fileName())); qWarning("CKeyboardLinux: Removing dead input device %s", qPrintable(fileInput->fileName()));
m_keyboardDevices.remove(fileInput->fileName()); m_keyboardDevices.remove(fileInput->fileName());
} }