From e964666a4d1c3217d1eae9e0099ec28391042622 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 9 Mar 2013 20:13:00 +0100 Subject: Make knob controllable using the arrow keys. --- plugingui/knob.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugingui/knob.cc b/plugingui/knob.cc index 43bc3e8..d36fb6f 100644 --- a/plugingui/knob.cc +++ b/plugingui/knob.cc @@ -104,6 +104,12 @@ void GUI::Knob::keyEvent(KeyEvent *e) case GUI::KeyEvent::KEY_DOWN: val -= 0.01; break; + case GUI::KeyEvent::KEY_RIGHT: + val += 0.01; + break; + case GUI::KeyEvent::KEY_LEFT: + val -= 0.01; + break; case GUI::KeyEvent::KEY_HOME: val = 0; break; -- cgit v1.2.3