From 6cb616689535c340b0b4f441c12ef8eb1ee42cb0 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 22 Dec 2018 10:58:06 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9vector=E8=AE=BF=E9=97=AE=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/input/je_event.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libjin/input') 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"; -- cgit v1.1-26-g67d0