Skip to content

Adds xinput support to wine, without changing the source of wine.

License

Notifications You must be signed in to change notification settings

Neverest/koku-xinput-wine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

koku-xinput-wine

Adds xinput support to wine, without changing the source of wine. Modified to use SDL2 gamepad mappings

Install

If you are on 64Bit you will need 32Bit tool-chain (multilib)

Because this will generate 32Bit code, no 64Bit support !

It depens on SDL2-Librarys.

 [user@host code]$git clone https://github.com/KoKuToru/koku-xinput-wine.git
 [user@host code]$cd koku-xinput-wine
 [user&host code]$cmake .
 [user@host code]$make

After this there will be a 'koku-xinput-wine.so' in the folder.

Usage

 [user@host game]$export LD_PRELOAD=/lib-path/koku-xinput-wine.so
 [user@host game]$wine game.exe

Simple Elegance, without patching wine. Of course it would be wiser to put this code into wine..

Config

You can add sdl2 gamepad mappings by putting them in file named "gamecontrollerdb.txt" and place it next to your game executable, or via the SDL_GAMECONTROLLERCONFIG environment variable.

You can find a premade gamecontrollerdb.txt with a lot of mappings here

About

Adds xinput support to wine, without changing the source of wine.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 76.3%
  • C 18.7%
  • CMake 5.0%