summarylogtreecommitdiffstats
path: root/cp5-pedal.sh
diff options
context:
space:
mode:
authorFurkan Kardame2024-09-30 22:52:59 +0300
committerFurkan Kardame2024-09-30 22:52:59 +0300
commit1c00d53dc12a423ed52fcf9726fdbb0fae50467e (patch)
treecbb718a2a18f213f1d2d7ecc58853bc842708e09 /cp5-pedal.sh
downloadaur-1c00d53dc12a423ed52fcf9726fdbb0fae50467e.tar.gz
Initiate udev rules pkgs and depreciate cammus-ff-dkms-git
Diffstat (limited to 'cp5-pedal.sh')
-rwxr-xr-xcp5-pedal.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/cp5-pedal.sh b/cp5-pedal.sh
new file mode 100755
index 000000000000..ea103157f6ea
--- /dev/null
+++ b/cp5-pedal.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+### Use these for older version firmware
+#evdev-joystick --e /dev/input/by-id/usb-CAMMUS006_CAMMUS_CP5_PEDALS_4975237D3448-event-if00 --d 0 --minimum 1995 --maximum 4095 --axis 1
+#evdev-joystick --e /dev/input/by-id/usb-CAMMUS006_CAMMUS_CP5_PEDALS_4975237D3448-event-if00 --d 0 --minimum 0 --maximum 2930 --axis 2
+
+### Use these for firmware 9 and above
+evdev-joystick --e /dev/input/by-id/usb-CAMMUS006_CAMMUS_CP5_PEDALS_4975237D3448-event-if00 --d 0 --minimum 0 --maximum 4095 --axis 1
+evdev-joystick --e /dev/input/by-id/usb-CAMMUS006_CAMMUS_CP5_PEDALS_4975237D3448-event-if00 --d 0 --minimum 0 --maximum 2930 --axis 2