summaryrefslogtreecommitdiff
path: root/plugingui/knob.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 20:12:23 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-03-09 20:12:23 +0100
commit08e96c97f7524190c40a1c5482076874f394a6a7 (patch)
tree93df09c80f05b884dd969c938a8f7665c9e23ef6 /plugingui/knob.h
parent221f7216d1b6fda90f1aba36b2509aa62e158bee (diff)
Make knob controllable using the arrow keys.
Diffstat (limited to 'plugingui/knob.h')
-rw-r--r--plugingui/knob.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/knob.h b/plugingui/knob.h
index a78361b..515d872 100644
--- a/plugingui/knob.h
+++ b/plugingui/knob.h
@@ -36,6 +36,7 @@ public:
Knob(Widget *parent);
bool catchMouse() { return true; }
+ bool isFocusable() { return true; }
void setValue(float value);
float value();
@@ -49,6 +50,7 @@ public:
virtual void buttonEvent(ButtonEvent *e);
virtual void mouseMoveEvent(MouseMoveEvent *e);
virtual void scrollEvent(ScrollEvent *e);
+ virtual void keyEvent(KeyEvent *e);
private:
typedef enum {