From 79dfb8dc8f356834f0b6cf7baf73f77552b08923 Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Thu, 23 Mar 2023 13:04:38 -0400 Subject: Introduce `Platform::Log` (#1640) * Add Platform::Log and Platform::LogLevel * Replace most printf calls with Platform::Log calls * Move a brace down * Move some log entries to one Log call - Some implementations of Log may assume a full line * Log the MAC address as LogLevel::Info --- src/frontend/qt_sdl/InputConfig/MapButton.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/frontend/qt_sdl/InputConfig') diff --git a/src/frontend/qt_sdl/InputConfig/MapButton.h b/src/frontend/qt_sdl/InputConfig/MapButton.h index afefed7..f90fa3f 100644 --- a/src/frontend/qt_sdl/InputConfig/MapButton.h +++ b/src/frontend/qt_sdl/InputConfig/MapButton.h @@ -24,6 +24,7 @@ #include #include "Input.h" +#include "Platform.h" class KeyMapButton : public QPushButton { @@ -51,7 +52,7 @@ protected: { if (!isChecked()) return QPushButton::keyPressEvent(event); - printf("KEY PRESSED = %08X %08X | %08X %08X %08X\n", event->key(), (int)event->modifiers(), event->nativeVirtualKey(), event->nativeModifiers(), event->nativeScanCode()); + Platform::Log(Platform::Debug, "KEY PRESSED = %08X %08X | %08X %08X %08X\n", event->key(), (int)event->modifiers(), event->nativeVirtualKey(), event->nativeModifiers(), event->nativeScanCode()); int key = event->key(); int mod = event->modifiers(); -- cgit v1.2.3