aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/input/je_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/input/je_event.h')
-rw-r--r--src/libjin/input/je_event.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libjin/input/je_event.h b/src/libjin/input/je_event.h
index 9fe34ff..7a90334 100644
--- a/src/libjin/input/je_event.h
+++ b/src/libjin/input/je_event.h
@@ -99,13 +99,13 @@ namespace JinEngine
/*
inline const char* getWheelName(Wheel wheel)
{
- if (wheel.x == -1)
+ if (wheel.x() == -1)
return "left";
- else if (wheel.x == 1)
+ else if (wheel.x() == 1)
return "right";
- else if (wheel.y == -1)
+ else if (wheel.y() == -1)
return "near";
- else if (wheel.y == 1)
+ else if (wheel.y() == 1)
return "far";
else
return "none";