From b7273762fba0bb30b4ba628268bcd38940e90cf9 Mon Sep 17 00:00:00 2001 From: zeromus Date: Wed, 17 Dec 2014 21:17:01 +0000 Subject: [PATCH] windows - rename Zup and Zdown to Z+ and Z- and straighten them out --- desmume/src/windows/inputdx.cpp | 16 ++++++++-------- desmume/src/windows/inputdx.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/desmume/src/windows/inputdx.cpp b/desmume/src/windows/inputdx.cpp index be636d5b8..1a9404e37 100644 --- a/desmume/src/windows/inputdx.cpp +++ b/desmume/src/windows/inputdx.cpp @@ -115,8 +115,8 @@ #define GAMEDEVICE_POVDNRIGHT "POV Dn Right" #define GAMEDEVICE_POVUPLEFT "POV Up Left" #define GAMEDEVICE_POVUPRIGHT "POV Up Right" -#define GAMEDEVICE_ZPOS "Z Up" -#define GAMEDEVICE_ZNEG "Z Down" +#define GAMEDEVICE_ZPOS "Z +" +#define GAMEDEVICE_ZNEG "Z -" #define GAMEDEVICE_RPOS "R Up" #define GAMEDEVICE_RNEG "R Down" #define GAMEDEVICE_UPOS "U Up" @@ -728,7 +728,7 @@ void S9xUpdateJoyState() { CheckAxis_game(JoyStatus.lX,-10000,10000,Joystick[C].Left,Joystick[C].Right); CheckAxis_game(JoyStatus.lY,-10000,10000,Joystick[C].Up,Joystick[C].Down); - CheckAxis_game(JoyStatus.lZ,-10000,10000,Joystick[C].ZDown,Joystick[C].ZUp); + CheckAxis_game(JoyStatus.lZ,-10000,10000,Joystick[C].ZNeg,Joystick[C].ZPos); CheckAxis_game(JoyStatus.lRx,-10000,10000,Joystick[C].XRotMin,Joystick[C].XRotMax); CheckAxis_game(JoyStatus.lRy,-10000,10000,Joystick[C].YRotMin,Joystick[C].YRotMax); CheckAxis_game(JoyStatus.lRz,-10000,10000,Joystick[C].ZRotMin,Joystick[C].ZRotMax); @@ -807,7 +807,7 @@ void di_poll_scan() { CheckAxis(C,0,JoyStatus.lX,-10000,10000,Joystick[C].Left,Joystick[C].Right); CheckAxis(C,2,JoyStatus.lY,-10000,10000,Joystick[C].Down,Joystick[C].Up); - CheckAxis(C,41,JoyStatus.lZ,-10000,10000,Joystick[C].ZDown,Joystick[C].ZUp); + CheckAxis(C,41,JoyStatus.lZ,-10000,10000,Joystick[C].ZNeg,Joystick[C].ZPos); CheckAxis(C,53,JoyStatus.lRx,-10000,10000,Joystick[C].XRotMin,Joystick[C].XRotMax); CheckAxis(C,55,JoyStatus.lRy,-10000,10000,Joystick[C].YRotMin,Joystick[C].YRotMax); CheckAxis(C,57,JoyStatus.lRz,-10000,10000,Joystick[C].ZRotMin,Joystick[C].ZRotMax); @@ -979,8 +979,8 @@ void TranslateKey(WORD keyz,char *out) case 50: strcat(out,GAMEDEVICE_POVDNRIGHT); break; case 51: strcat(out,GAMEDEVICE_POVUPLEFT); break; case 52: strcat(out,GAMEDEVICE_POVUPRIGHT); break; - case 41: strcat(out,GAMEDEVICE_ZPOS); break; - case 42: strcat(out,GAMEDEVICE_ZNEG); break; + case 41: strcat(out,GAMEDEVICE_ZNEG); break; + case 42: strcat(out,GAMEDEVICE_ZPOS); break; case 43: strcat(out,GAMEDEVICE_RPOS); break; case 44: strcat(out,GAMEDEVICE_RNEG); break; case 45: strcat(out,GAMEDEVICE_UPOS); break; @@ -2398,8 +2398,8 @@ bool S9xGetState (WORD KeyIdent) case 50:return !Joystick [j].PovDnRight; case 51:return !Joystick [j].PovUpLeft; case 52:return !Joystick [j].PovUpRight; - case 41:return !Joystick [j].ZUp; - case 42:return !Joystick [j].ZDown; + case 41:return !Joystick [j].ZNeg; + case 42:return !Joystick [j].ZPos; case 43:return !Joystick [j].RUp; case 44:return !Joystick [j].RDown; case 45:return !Joystick [j].UUp; diff --git a/desmume/src/windows/inputdx.h b/desmume/src/windows/inputdx.h index c4bd16f1a..de9effc3a 100644 --- a/desmume/src/windows/inputdx.h +++ b/desmume/src/windows/inputdx.h @@ -112,8 +112,8 @@ struct SJoyState{ bool UDown; bool VUp; bool VDown; - bool ZUp; - bool ZDown; + bool ZPos; + bool ZNeg; bool Button[128]; bool FeedBack; LPDIRECTINPUTEFFECT pEffect;