gimx: cleanup

This commit is contained in:
bb2020 2021-04-23 23:07:45 +03:00
parent ebbf8bcbe2
commit b81b6747ea
2 changed files with 7 additions and 19 deletions

View File

@ -51,15 +51,19 @@ in stdenv.mkDerivation rec {
mkdir -p $out/share
cp -r ./loader/firmware $out/share/firmware
cp -r ${gimx-config}/Linux $out/share/config
patch ${gimx-config}/Linux/Dualshock4.xml ${./noff.patch} -o $out/share/ds4.xml
makeWrapper $out/bin/gimx $out/bin/gimx-with-confs \
--set GIMXCONF $out/share/config
makeWrapper $out/bin/gimx $out/bin/gimx-test-ds4 \
--set GIMXCONF $out/share \
--set GIMXCONF $out/share/config \
--add-flags "--nograb" --add-flags "--curses" \
--add-flags "-p /dev/ttyUSB0" --add-flags "-c ds4.xml"
--add-flags "-p /dev/ttyUSB0" --add-flags "-c Dualshock4.xml"
makeWrapper $out/bin/gimx $out/bin/gimx-test-xone \
--set GIMXCONF $out/share/config \
--add-flags "--nograb" --add-flags "--curses" \
--add-flags "-p /dev/ttyUSB0" --add-flags "-c XOnePadUsb.xml"
'';
meta = with lib; {

View File

@ -1,16 +0,0 @@
diff --git a/Linux/Dualshock4.xml b/Linux/Dualshock4.xml
index 5e53ed3..45ee5ed 100644
--- a/Linux/Dualshock4.xml
+++ b/Linux/Dualshock4.xml
@@ -94,6 +94,11 @@
</axis>
</axis_map>
<joystick_corrections_list/>
+ <force_feedback>
+ <device type="joystick" id="0" name="Sony Computer Entertainment Wireless Controller"/>
+ <inversion enable="no"/>
+ <gain rumble="0" constant="0" spring="0" damper="0"/>
+ </force_feedback>
</configuration>
</controller>
</root>