summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 20:13:00 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 20:13:00 +0100
commite964666a4d1c3217d1eae9e0099ec28391042622 (patch)
treecefc05030dda356b4056a17fd946be845fb14131 /plugingui
parent08e96c97f7524190c40a1c5482076874f394a6a7 (diff)
Make knob controllable using the arrow keys.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/knob.cc6
1 files changed, 6 insertions, 0 deletions
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;