mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 21:46:23 +02:00
Remove legacy InputState.
This commit is contained in:
1 parent
e1bc26e67a
commit
9e390510df
60 files changed
+140
-195
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user