mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-20 21:43:12 -07:00
Log Gamepad Info into SessionLog
This commit is contained in:
parent
5403cbb389
commit
db25969efa
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ void StreamSession::UpdateGamepads()
|
|||
{
|
||||
if(gamepad)
|
||||
{
|
||||
qDebug() << "gamepad" << gamepad->deviceId() << "disconnected";
|
||||
CHIAKI_LOGI(log.GetChiakiLog(), "Gamepad %d disconnected", gamepad->deviceId());
|
||||
delete gamepad;
|
||||
gamepad = nullptr;
|
||||
}
|
||||
|
@ -180,7 +180,7 @@ void StreamSession::UpdateGamepads()
|
|||
if(!connected_pads.isEmpty())
|
||||
{
|
||||
gamepad = new QGamepad(connected_pads[0], this);
|
||||
qDebug() << "gamepad" << connected_pads[0] << "connected: " << gamepad->name();
|
||||
CHIAKI_LOGI(log.GetChiakiLog(), "Gamepad %d connected: \"%s\"", connected_pads[0], gamepad->name().toLocal8Bit().constData());
|
||||
connect(gamepad, &QGamepad::buttonAChanged, this, &StreamSession::SendFeedbackState);
|
||||
connect(gamepad, &QGamepad::buttonBChanged, this, &StreamSession::SendFeedbackState);
|
||||
connect(gamepad, &QGamepad::buttonXChanged, this, &StreamSession::SendFeedbackState);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue