Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tovarichtch committed Nov 8, 2024
1 parent 0dface2 commit 081e23a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# Keyboard, Mouse and Gamepad
SUBSYSTEM=="input", ACTION=="add", ATTRS{name}=="OpenFIRE FIRECon Keyboard", ENV{ID_INPUT_KEYBOARD}="0", ENV{ID_INPUT_KEY}="0", RUN+="/usr/bin/virtual-openfire-add"
SUBSYSTEM=="input", ACTION=="add", ATTRS{name}=="OpenFIRE FIRECon Mouse", ENV{ID_INPUT_MOUSE}="0", RUN+="/usr/bin/virtual-openfire-add"
SUBSYSTEM=="input", ACTION=="add", ATTRS{name}=="OpenFIRE FIRECon", ENV{ID_INPUT_JOYSTICK}="0", ENV{ID_INPUT_KEY}="0", RUN+="/usr/bin/virtual-openfire-add"

# Virtual Light Gun
SUBSYSTEM=="input", ACTION=="add", ATTRS{name}=="OpenFIRE light gun", MODE="0666", ENV{ID_INPUT_JOYSTICK}="0", ENV{ID_INPUT_KEYBOARD}="0", ENV{ID_INPUT_KEY}="0", ENV{ID_INPUT_MOUSE}="1", ENV{ID_INPUT_GUN}="1"
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ checkRunningPIDAndExit1
CHILDREN=$(evsieve-helper children "${PARENTHASH}" input usb)
NDEVS=$(echo "${CHILDREN}" | wc -l)

if test "${NDEVS}" = 3
if test "${NDEVS}" = 2
then
DEV1=$(echo "${CHILDREN}" | head -1 | cut -f 1)
DEV2=$(echo "${CHILDREN}" | head -2 | tail -1 | cut -f 1)
DEV3=$(echo "${CHILDREN}" | head -3 | tail -1 | cut -f 1)

# Based on the enclosed instruction book from official Github
#
Expand All @@ -58,7 +57,7 @@ then
# D-pad left : KEY_LEFT
# D-pad right : KEY_RIGHT

nohup evsieve --input "${DEV1}" "${DEV2}" "${DEV3}" persist=exit --map yield btn:middle btn:2 --map yield btn:side btn:right --map yield key:1 btn:middle --map yield key:5 btn:1 --map yield key:up btn:5 --map yield key:down btn:6 --map yield key:left btn:7 --map yield key:right btn:8 --output name="OpenFIRE light gun" >/dev/null 2>"${LOGFILE}" &
nohup evsieve --input "${DEV1}" "${DEV2}" persist=exit --map yield btn:middle btn:2 --map yield btn:side btn:right --map yield key:1 btn:middle --map yield key:5 btn:1 --map yield key:up btn:5 --map yield key:down btn:6 --map yield key:left btn:7 --map yield key:right btn:8 --output name="OpenFIRE light gun" >/dev/null 2>"${LOGFILE}" &
echo $! > "${PIDFILE}"
else
unlockAndExit 1
Expand Down

0 comments on commit 081e23a

Please sign in to comment.