Fixed compilation warnings

This commit is contained in:
Sour 2019-01-23 23:59:59 -05:00
parent ee7f0151ad
commit fd2b7ab649
2 changed files with 2 additions and 1 deletions

View file

@ -1342,6 +1342,7 @@ public:
case 3: return 1.25; case 3: return 1.25;
case 4: return 1.5; case 4: return 1.5;
} }
return 1;
} }
void SetZapperDetectionRadius(uint32_t detectionRadius) void SetZapperDetectionRadius(uint32_t detectionRadius)

View file

@ -354,7 +354,7 @@ bool DirectInputManager::IsPressed(int port, int button)
DIJOYSTATE2& state = _joysticks[port].state; DIJOYSTATE2& state = _joysticks[port].state;
DIJOYSTATE2& defaultState = _joysticks[port].defaultState; DIJOYSTATE2& defaultState = _joysticks[port].defaultState;
int deadRange = 500 * _console->GetSettings()->GetControllerDeadzoneRatio(); int deadRange = (int)(500 * _console->GetSettings()->GetControllerDeadzoneRatio());
int povDirection = state.rgdwPOV[0] / 4500; int povDirection = state.rgdwPOV[0] / 4500;
bool povCentered = (LOWORD(state.rgdwPOV[0]) == 0xFFFF) || povDirection >= 8; bool povCentered = (LOWORD(state.rgdwPOV[0]) == 0xFFFF) || povDirection >= 8;