Replace lines 350 and 351 with these two lines to fix compatibility on fresh installs of Windows:
@set_state = Win32API.new("XINPUT9_1_0", "XInputSetState", "IP", "V") @get_state = Win32API.new("XINPUT9_1_0", "XInputGetState", "IP", "L")XInput 1.4 is exclusive to Windows 8, so using it instead of 1.3 is a no. Pretty much any game install ever requires installing the full DirectX package as well, so it's really only a compatibility issue if you skip installing DirectX and go straight to playtesting. The current version has no real issues with Xinput 9.1.0, but I reserve the right to add features later.
Not sure about your movement issue, though it sounds like a problem with calibration. You might want to look at it in the control panel. Is MOVE_WITH_ANALOG enabled or disabled?
As for your last question, I had planned on releasing a separate addon module for more advanced vibration effects, but pretty much nobody ever asked about it (or this script) for a really long time and it got left behind. For reference, a proper vibration call looks like this:
WolfPad.vibrate(0.5, 0.5, 60, 0)That runs both motors on controller 1 at half power for 60 frames (one second). The time sensitivity is not that great, though (blame Microsoft). Also be sure that enable_vibration is set to true in PadConfig, or nothing will happen.