From f915ce6b01f02a75877ec2bd181adcb442ddf6e9 Mon Sep 17 00:00:00 2001 From: Rene Stange Date: Sun, 3 Apr 2022 21:50:31 +0200 Subject: [PATCH] userinterface: Reverse click and double-click events (#67) * Double-click is select * Single-click is back --- src/userinterface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/userinterface.cpp b/src/userinterface.cpp index 793c75b..f504d9d 100644 --- a/src/userinterface.cpp +++ b/src/userinterface.cpp @@ -186,11 +186,11 @@ void CUserInterface::EncoderEventHandler (CKY040::TEvent Event) break; case CKY040::EventSwitchClick: - m_Menu.EventHandler (CUIMenu::MenuEventSelect); + m_Menu.EventHandler (CUIMenu::MenuEventBack); break; case CKY040::EventSwitchDoubleClick: - m_Menu.EventHandler (CUIMenu::MenuEventBack); + m_Menu.EventHandler (CUIMenu::MenuEventSelect); break; case CKY040::EventSwitchHold: