From f9add1f684463a03f718eb59c991f69bc16e23ed Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sun, 19 Feb 2023 18:43:00 +0100 Subject: [PATCH] logservice: add support for Pointer event types and config event intents --- src/LogService.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/LogService.cpp b/src/LogService.cpp index 749aaf0..da24d5d 100644 --- a/src/LogService.cpp +++ b/src/LogService.cpp @@ -48,6 +48,8 @@ LogService::intentName(InputEvent::Intent intent) return "set-display-length"; case InputEvent::SaveConfigurationRequest: return "save-configuration"; + case InputEvent::ConfigurationChanged: + return "configuration-changed"; default: return NULL; } @@ -67,6 +69,10 @@ LogService::eventValue(const InputEvent& evt) snprintf(s_valueBuf, sizeof(s_valueBuf), "\"%s\"", evt.asString());break; case InputEvent::Color: snprintf(s_valueBuf, sizeof(s_valueBuf), "[%d, %d, %d]", evt.asRGB().r, evt.asRGB().g, evt.asRGB().b);break; + case InputEvent::Pointer: + snprintf(s_valueBuf, sizeof(s_valueBuf), "*%p", evt.as());break; + default: + snprintf(s_valueBuf, sizeof(s_valueBuf), "CORRUPTED");break; } return s_valueBuf; }