From 564b5c6e51519389021b97b9802a98edcf49df5f Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Mon, 17 Mar 2014 19:27:29 +0000 Subject: [PATCH] annotated hex values in logging --- src/lib/platform/OSXKeyState.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/platform/OSXKeyState.cpp b/src/lib/platform/OSXKeyState.cpp index 40ac67fb..a1fdc094 100644 --- a/src/lib/platform/OSXKeyState.cpp +++ b/src/lib/platform/OSXKeyState.cpp @@ -490,7 +490,7 @@ COSXKeyState::fakeKey(const Keystroke& keystroke) bool keyDown = keystroke.m_data.m_button.m_press; CGEventSourceRef source = 0; - LOG((CLOG_DEBUG1 " button=%03x keyCode=%03x keyDown=%s client=%08x", + LOG((CLOG_DEBUG1 " button=0x%04x keyCode=0x%08x keyDown=%s client=0x%08x", keystroke.m_data.m_button.m_button, keyCode, keyDown ? "down" : "up", @@ -536,7 +536,7 @@ COSXKeyState::fakeKey(const Keystroke& keystroke) modifiers |= kCGEventFlagMaskAlphaShift; } - LOG((CLOG_DEBUG1 " modifiers=%03x", modifiers)); + LOG((CLOG_DEBUG1 " modifiers=0x%04x", modifiers)); // set the event flags for modifier keys, see: http://tinyurl.com/pxl742y CGEventSetFlags(ref, modifiers); @@ -552,7 +552,7 @@ COSXKeyState::fakeKey(const Keystroke& keystroke) IKeyState::KeyButtonSet::const_iterator it; for (it = pressed.begin(); it != pressed.end(); ++it) { - LOG((CLOG_DEBUG1 " pressed: button=%03x", *it)); + LOG((CLOG_DEBUG1 " pressed: button=0x%04x", *it)); } } break;