From a1788fa779e0afbd7491126d448a51bd70358f67 Mon Sep 17 00:00:00 2001 From: Jeremy517 Date: Thu, 7 Jan 2016 23:48:20 -0800 Subject: [PATCH 1/2] Allow for pushing two C Buttons at once when using an analog stick This value specifies how far an analog stick has to be pressed to count as a C Button press when C Buttons are mapped to an analog stick. The old value did not allow for pressing two c buttons at once, because diagonals did not meet the value. This value specifies that an analog stick must be pressed halfway to count as a C Button press, which allows you to push two C Buttons at once. --- Source/nragev20/DirectInput.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/nragev20/DirectInput.h b/Source/nragev20/DirectInput.h index efbc05ccb..507c34d13 100644 --- a/Source/nragev20/DirectInput.h +++ b/Source/nragev20/DirectInput.h @@ -56,7 +56,7 @@ HRESULT WriteAdaptoidPak( LPDIRECTINPUTDEVICE8 lpDirectInputDevice, DWORD addr, #define MINAXISVALUE -32767 #define MAXAXISVALUE 32767 #define ZEROVALUE 0 -#define THRESHOLD 90 +#define THRESHOLD 50 #define RANGERELATIVE (MAXAXISVALUE - ZEROVALUE + 1) #define ABSTHRESHOLD (RANGERELATIVE * THRESHOLD / 100) // plus or minus this many 1/100 degrees counts as GetJoyPadPOV being pressed From 5b0ea4354b70a7e2e3633d486f01fd84f44d61d4 Mon Sep 17 00:00:00 2001 From: Jeremy517 Date: Thu, 7 Jan 2016 23:49:48 -0800 Subject: [PATCH 2/2] Allow for pushing two C Buttons at once when using an analog stick This value specifies how far an analog stick has to be pressed to count as a C Button pres when c Buttons are mapped to an analog stick. The old value did not allow for pressing two c buttons at once, because diagonals did not meet the value. This value specifies that an analog stick must be pressed roughly halfway to count as a C Button press, which allows you to push two C Buttons at once. --- Source/nragev20/XInputController.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/nragev20/XInputController.h b/Source/nragev20/XInputController.h index a03d3b201..3ef81ebf3 100644 --- a/Source/nragev20/XInputController.h +++ b/Source/nragev20/XInputController.h @@ -63,7 +63,7 @@ BOOL IsXInputDevice( const GUID* pGuidProductFromDirectInput ); //defines #define N64_ANALOG_MAX 127 #define XC_ANALOG_MAX 32767 -#define BUTTON_ANALOG_VALUE 107 +#define BUTTON_ANALOG_VALUE 60 //enums namespace N64_BUTTONS