animations: chimes: drop UserInput event type handling
This commit is contained in:
		| @@ -26,13 +26,7 @@ void ChimesAnimation::randomize() { | |||||||
| } | } | ||||||
|  |  | ||||||
| void ChimesAnimation::handleEvent(const InputEvent& evt) { | void ChimesAnimation::handleEvent(const InputEvent& evt) { | ||||||
|     if (evt.intent == InputEvent::UserInput) { |     if (evt.intent == InputEvent::SetColor) { | ||||||
|         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) { |  | ||||||
|         m_flashBrightness.set(255, 0); |         m_flashBrightness.set(255, 0); | ||||||
|         m_flashColor = evt.asRGB(); |         m_flashColor = evt.asRGB(); | ||||||
|         uint8_t flashHue = rgb2hsv_approximate(m_flashColor).hue; |         uint8_t flashHue = rgb2hsv_approximate(m_flashColor).hue; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user