mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Issue #125 Linux: error on failure to open input device file
This commit is contained in:
@@ -120,6 +120,7 @@ namespace BlackInput
|
||||
}
|
||||
else
|
||||
{
|
||||
BlackMisc::CLogMessage(this).error(u"Failed to open joystick device %1: %2") << fd->fileName() << fd->errorString();
|
||||
fd->close();
|
||||
fd->deleteLater();
|
||||
}
|
||||
|
||||
@@ -254,6 +254,10 @@ namespace BlackInput
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
BlackMisc::CLogMessage(this).error(u"Failed to open keyboard device %1: %2") << inputFile->fileName() << inputFile->errorString();
|
||||
}
|
||||
}
|
||||
|
||||
void CKeyboardLinux::keyEvent(int keyCode, bool isPressed)
|
||||
|
||||
Reference in New Issue
Block a user