diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-09 20:13:00 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2013-03-09 20:13:00 +0100 |
commit | e964666a4d1c3217d1eae9e0099ec28391042622 (patch) | |
tree | cefc05030dda356b4056a17fd946be845fb14131 /plugingui/knob.cc | |
parent | 08e96c97f7524190c40a1c5482076874f394a6a7 (diff) |
Make knob controllable using the arrow keys.
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r-- | plugingui/knob.cc | 6 |
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; |