* When you switch from mempak to rumble , rumble pack is never initialized.
* Rumble stops working after loading a savestate.
* No shortcut working when you have 4 xinput controller plugged.
There is a performance hit when you check for a controller that wasn't attached last time you called it.
This fix minimizes a performance issue with XInput on Windows when checking for a disconnected controller.
If you get ERROR_DEVICE_NOT_CONNECTED from XInputGetState, you shouldn't call that slot for a little while.
- Created a Makefile to work under MSYS2; requires the w32api package installed through MSYS2's pacman.
The old script isn't needed anymore.
Thanks to DKO for the patch.
- Defined NOMINMAX macro to disable windef.h's min/max macros; they were clashing with the C++ standard library's std::min/std::max.
- All uses of min/max that had ambiguous type deduction were explicitly instantiated as min<long> and max<long>.
- Header includes were sorted
Many thanks to DKO for the patch.
This value specifies how far an analog stick has to be pressed to count as a C Button pres when c Buttons are mapped to an analog stick. The old value did not allow for pressing two c buttons at once, because diagonals did not meet the value. This value specifies that an analog stick must be pressed roughly halfway to count as a C Button press, which allows you to push two C Buttons at once.
This value specifies how far an analog stick has to be pressed to count as a C Button press when C Buttons are mapped to an analog stick. The old value did not allow for pressing two c buttons at once, because diagonals did not meet the value. This value specifies that an analog stick must be pressed halfway to count as a C Button press, which allows you to push two C Buttons at once.
<wtypes.h> may include all the BOOL/DWORD/etc. stuff as a low-level MSVC header, but it is not obligated to do so per the low-level header specifications for other compilers, such as (evidently) MinGW.
The old code only cared about if the macro was already defined (then #undef and re-define it). If it was NOT already defined, it just ignored the problem and causes unresolved compile-time symbols.