Fix USIO log spam

This commit is contained in:
Megamouse 2026-05-20 17:32:09 +02:00
parent d7da6a713b
commit 73c8c270a6
3 changed files with 3 additions and 3 deletions

View File

@ -194,7 +194,7 @@ void usb_device_passthrough::interrupt_transfer(u32 buf_size, u8* buf, u32 endpo
const UsbDeviceEndpoint* ep_desc = find_endpoint(static_cast<u8>(endpoint));
const bool is_bulk = ep_desc && (ep_desc->bmAttributes & LIBUSB_TRANSFER_TYPE_MASK) == LIBUSB_TRANSFER_TYPE_BULK;
sys_usbd.notice("USIO debug: submitting passthrough transfer endpoint=0x%x dir=%s size=0x%x type=%s",
sys_usbd.trace("USIO debug: submitting passthrough transfer endpoint=0x%x dir=%s size=0x%x type=%s",
endpoint, (endpoint & LIBUSB_ENDPOINT_IN) ? "IN" : "OUT", buf_size, is_bulk ? "bulk" : "interrupt");
if (is_bulk)

View File

@ -901,7 +901,7 @@ std::string keyboard_pad_handler::GetKeyName(const QKeyEvent* keyEvent, bool wit
return QKeySequence(keyEvent->key()).toString(QKeySequence::NativeText).toStdString();
}
std::string keyboard_pad_handler::GetKeyName(const u32& keyCode)
std::string keyboard_pad_handler::GetKeyName(u32 keyCode)
{
return QKeySequence(keyCode).toString(QKeySequence::NativeText).toStdString();
}

View File

@ -93,7 +93,7 @@ public:
static std::string GetMouseName(u32 button);
static QStringList GetKeyNames(const QKeyEvent* keyEvent);
static std::string GetKeyName(const QKeyEvent* keyEvent, bool with_modifiers);
static std::string GetKeyName(const u32& keyCode);
static std::string GetKeyName(u32 keyCode);
static std::vector<std::set<u32>> GetKeyCombos(const std::string& cfg_string);
static u32 GetKeyCode(const QString& keyName);