From cd6c097b76bd3ca13d115320f0c106a00cc739ae Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Sat, 23 Dec 2023 11:01:21 +0100 Subject: [PATCH] animations: chimes: drop UserInput event type handling --- src/animations/Chimes.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/animations/Chimes.cpp b/src/animations/Chimes.cpp index f31c84f..34c381c 100644 --- a/src/animations/Chimes.cpp +++ b/src/animations/Chimes.cpp @@ -26,13 +26,7 @@ void ChimesAnimation::randomize() { } void ChimesAnimation::handleEvent(const InputEvent& evt) { - if (evt.intent == InputEvent::UserInput) { - if (strcmp(evt.asString(), "blobs") == 0) { - m_blobs.toggle(); - } else if (strcmp(evt.asString(), "chimes") == 0) { - m_chimes.toggle(); - } - } else if (evt.intent == InputEvent::SetColor) { + if (evt.intent == InputEvent::SetColor) { m_flashBrightness.set(255, 0); m_flashColor = evt.asRGB(); uint8_t flashHue = rgb2hsv_approximate(m_flashColor).hue;