summaryrefslogtreecommitdiff
path: root/plugingui/knob.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-10-26 19:48:30 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2015-10-26 19:48:30 +0100
commit88ad7366a3eb6bc73bc99078ae13302099b76f09 (patch)
tree64a5f5b3a4b5c187d25e21e21bf2808f12367820 /plugingui/knob.cc
parentb84e5f74e5513e4cd14fe62b03777be8ee9c2537 (diff)
Refactored LineEdit and FileBrowser. Renamed all KEY_XYZ event types to KeyXyz.
Diffstat (limited to 'plugingui/knob.cc')
-rw-r--r--plugingui/knob.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugingui/knob.cc b/plugingui/knob.cc
index ec35af0..360766e 100644
--- a/plugingui/knob.cc
+++ b/plugingui/knob.cc
@@ -96,22 +96,22 @@ void Knob::keyEvent(KeyEvent *e)
float value = currentValue;
switch(e->keycode) {
- case KeyEvent::KEY_UP:
+ case KeyEvent::KeyUp:
value += 0.01;
break;
- case KeyEvent::KEY_DOWN:
+ case KeyEvent::KeyDown:
value -= 0.01;
break;
- case KeyEvent::KEY_RIGHT:
+ case KeyEvent::KeyRight:
value += 0.01;
break;
- case KeyEvent::KEY_LEFT:
+ case KeyEvent::KeyLeft:
value -= 0.01;
break;
- case KeyEvent::KEY_HOME:
+ case KeyEvent::KeyHome:
value = 0;
break;
- case KeyEvent::KEY_END:
+ case KeyEvent::KeyEnd:
value = 1;
break;
default: