Merge pull request #866 from Jeremy517/master

Allow for pushing two C Buttons at once when using an analog stick
This commit is contained in:
zilmar 2016-01-27 19:10:19 +11:00
commit ba7bf929a2
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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