update mouse logging

This commit is contained in:
Dasky 2024-10-20 14:39:07 +01:00
parent 97efc9340a
commit 0e7e4fffac
2 changed files with 2 additions and 9 deletions

View File

@ -32,15 +32,7 @@ std::ostream& operator<<(std::ostream& os, const report_mouse_t& report) {
return os << "empty" << std::endl;
}
os << "(";
os << (int)report.x << ", ";
os << (int)report.y << ", ";
os << (int)report.h << ", ";
os << (int)report.v << ", ";
os << (int)report.buttons;
os << ")";
os << "(X:" << (int)report.x << ", Y:" << (int)report.y << ", H:" << (int)report.h << ", V:" << (int)report.v << ", B:" << (int)report.buttons << ")";
return os << std::endl;
}

View File

@ -54,6 +54,7 @@ void TestDriver::send_nkro(report_nkro_t* report) {
}
void TestDriver::send_mouse(report_mouse_t* report) {
test_logger.trace() << std::setw(10) << std::left << "send_mouse: (X:" << (int)report->x << ", Y:" << (int)report->y << ", H:" << (int)report->h << ", V:" << (int)report->v << ", B:" << (int)report->buttons << ")" << std::endl;
m_this->send_mouse_mock(*report);
}