mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 02:55:44 +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
|
else
|
||||||
{
|
{
|
||||||
|
BlackMisc::CLogMessage(this).error(u"Failed to open joystick device %1: %2") << fd->fileName() << fd->errorString();
|
||||||
fd->close();
|
fd->close();
|
||||||
fd->deleteLater();
|
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)
|
void CKeyboardLinux::keyEvent(int keyCode, bool isPressed)
|
||||||
|
|||||||
Reference in New Issue
Block a user