06-11-2013, 12:23 PM
Quicky hackup: (build + patch). It's a VS2012 build, so you'll need runtimes... and it ain't for XP either. >_<
Most of the time was spent on getting it to compile and... getting the patch file. *sighs*
Code:
diff --git a/Windows/XinputDevice.cpp b/Windows/XinputDevice.cpp
index a00f17d..6657432 100644
--- a/Windows/XinputDevice.cpp
+++ b/Windows/XinputDevice.cpp
@@ -171,6 +171,13 @@ void XinputDevice::ApplyDiff(XINPUT_STATE &state, InputState &input_state) {
input_state.pad_buttons |= xinput_ctrl_map[i + 1];
}
+ const SHORT rthreshold = 22000;
+
+ if (state.Gamepad.sThumbRX > rthreshold) input_state.pad_buttons |= PAD_BUTTON_RIGHT;
+ else if(state.Gamepad.sThumbRX < -rthreshold) input_state.pad_buttons |= PAD_BUTTON_LEFT;
+
+ if (state.Gamepad.sThumbRY > rthreshold) input_state.pad_buttons |= PAD_BUTTON_UP;
+ else if(state.Gamepad.sThumbRY < -rthreshold) input_state.pad_buttons |= PAD_BUTTON_DOWN;
}
}
int XinputDevice::UpdateRawStateSingle(RawInputState &rawState)Most of the time was spent on getting it to compile and... getting the patch file. *sighs*
ズキューーン

