Remove legacy InputState.

This commit is contained in:
Unknown W. Brackets committed 2017-03-14 22:07:07 -07:00
1 parent e1bc26e67a
commit 9e390510df
60 files changed
+140 -195

No files matched your search

+3 -3
View File
@@ -221,7 +221,7 @@ inline float LinearMaps(short val, short a0, short a1, short b0, short b1) {
return b0 + (((val - a0) * (b1 - b0)) / (a1 - a0));
}
int DinputDevice::UpdateState(InputState &input_state) {
int DinputDevice::UpdateState() {
if (!pJoystick) return -1;
DIJOYSTATE2 js;
@@ -234,7 +234,7 @@ int DinputDevice::UpdateState(InputState &input_state) {
if(FAILED(pJoystick->GetDeviceState(sizeof(DIJOYSTATE2), &js)))
return -1;
ApplyButtons(js, input_state);
ApplyButtons(js);
if (analog) {
AxisInput axis;
@@ -308,7 +308,7 @@ int DinputDevice::UpdateState(InputState &input_state) {
return -1;
}
void DinputDevice::ApplyButtons(DIJOYSTATE2 &state, InputState &input_state) {
void DinputDevice::ApplyButtons(DIJOYSTATE2 &state) {
BYTE *buttons = state.rgbButtons;
u32 downMask = 0x80;