summaryrefslogtreecommitdiff
path: root/plugingui/button.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/button.cc')
-rw-r--r--plugingui/button.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugingui/button.cc b/plugingui/button.cc
index dea376c..be5f82e 100644
--- a/plugingui/button.cc
+++ b/plugingui/button.cc
@@ -83,7 +83,7 @@ Button::~Button()
void Button::buttonEvent(ButtonEvent *e)
{
- if(e->direction == 1)
+ if(e->direction == ButtonEvent::Down)
{
draw_state = down;
button_state = down;
@@ -91,7 +91,7 @@ void Button::buttonEvent(ButtonEvent *e)
repaintEvent(nullptr);
}
- if(e->direction == -1)
+ if(e->direction == ButtonEvent::Up)
{
draw_state = up;
button_state = up;