aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/input/je_event.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-22 10:58:06 +0800
committerchai <chaifix@163.com>2018-12-22 10:58:06 +0800
commit6cb616689535c340b0b4f441c12ef8eb1ee42cb0 (patch)
tree1013294d114d18fd10f363e4645d421e7efbd285 /src/libjin/input/je_event.h
parent71416cb4b388956d6132f6c8b5b77b0fb38b7a27 (diff)
*修改vector访问方式
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";