KoKuToru / koku-xinput-wine

Adds xinput support to wine, without changing the source of wine.
BSD 2-Clause "Simplified" License
69 stars 21 forks source link

Add 64 bit support for hooking SDL XInput #17

Closed tonix64 closed 7 years ago

tonix64 commented 7 years ago

This adds 64 bit support for the Sjmp mechanism.

Tested with some 64 bit games and it works.

Pointer arithmetic in device.cpp will need more work, but that's only for CoSetProxyBlanket mechanism that's not needed for all games. For this pull request I have disabled that part for 64 bit builds so as to not cause uneeded problems.

Also adds a WINAPI define backported from wine, to support 64bit. The new extended definition might need some testing.

tonix64 commented 7 years ago

Btw the following fork has a more ellaborate solution, you might want to use that instead:

https://github.com/berenm/koku-xinput-wine/tree/cleanup