mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2026-07-31 17:46:19 -04:00
Add time display to hotplug messages.
This commit is contained in:
@@ -897,7 +897,9 @@ void InputDaemon::secondInputPass(QQueue<SDL_Event> *sdlEventQueue)
|
||||
InputDevice *device = joysticks->value(event.jdevice.which);
|
||||
if (device)
|
||||
{
|
||||
Logger::LogInfo(QString("Removing joystick #%1").arg(device->getRealJoyNumber()));
|
||||
Logger::LogInfo(QString("Removing joystick #%1 [%2]")
|
||||
.arg(device->getRealJoyNumber())
|
||||
.arg(QTime::currentTime().toString("hh:mm:ss.zzz")));
|
||||
removeDevice(device);
|
||||
}
|
||||
|
||||
@@ -906,7 +908,9 @@ void InputDaemon::secondInputPass(QQueue<SDL_Event> *sdlEventQueue)
|
||||
|
||||
case SDL_JOYDEVICEADDED:
|
||||
{
|
||||
Logger::LogInfo(QString("New joystick found - #%1").arg(event.jdevice.which+1));
|
||||
Logger::LogInfo(QString("New joystick found - #%1 [%2]")
|
||||
.arg(event.jdevice.which+1)
|
||||
.arg(QTime::currentTime().toString("hh:mm:ss.zzz")));
|
||||
addInputDevice(event.jdevice.which);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user