AntiMicroX / antimicrox

Graphical program used to map keyboard buttons and mouse controls to a gamepad. Useful for playing games with no gamepad support.
GNU General Public License v3.0
2.25k stars 137 forks source link

fix: Fixing builds with X11=OFF #927

Closed sjoblomj closed 4 months ago

sjoblomj commented 4 months ago

The code does not compile when building with X11=OFF:

cd antimicrox
mkdir build && cd build
cmake -DWITH_X11=OFF ..  # Fails!
cmake --build .

There are errors in two files that cause this.

This PR makes the code compile again.

pktiuk commented 4 months ago

@sjoblomj
Thank you for your contribution.