From 8c86752e1d60d1638bde42b5aabb373d0a9eedf3 Mon Sep 17 00:00:00 2001 From: "jean.chalard" Date: Sun, 14 Feb 2010 13:57:43 +0000 Subject: [PATCH] J : * Bugfix --- JGE/src/JGE.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/JGE/src/JGE.cpp b/JGE/src/JGE.cpp index 76d56e52b..7348c97e9 100644 --- a/JGE/src/JGE.cpp +++ b/JGE/src/JGE.cpp @@ -28,18 +28,16 @@ u8 JGE::GetAnalogX() { - if (JGEGetKeyState(VK_LEFT)) return 0; - if (JGEGetKeyState(VK_RIGHT)) return 0xff; - + if (GetButtonState(JGE_BTN_LEFT)) return 0; + if (GetButtonState(JGE_BTN_RIGHT)) return 0xff; return 0x80; } u8 JGE::GetAnalogY() { - if (JGEGetKeyState(VK_UP)) return 0; - if (JGEGetKeyState(VK_DOWN)) return 0xff; - + if (GetButtonState(JGE_BTN_UP)) return 0; + if (GetButtonState(JGE_BTN_DOWN)) return 0xff; return 0x80; }