Skip to content
Snippets Groups Projects
Commit dbbbb785 authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

Binding of Isaac controls v1

parent e9026d7d
No related branches found
No related tags found
No related merge requests found
modules/binding_of_isaac_Controls/Capture du 2015-12-27 23:17:26.png

438 KiB

#!/bin/bash
# Define the default gamepad module name
module=xpad
# Check if the module is already loaded, if so, remove it and run the xboxdrv module
if lsmod | grep -q "^$module "
then sudo rmmod xpad
fi
if [ -z "$padconf" ]
then
echo -e "$prompt"Choose controls — attack with:"$normal"
echo -e "$choice"1"$info"\) Right "$choice"Stick"$info"
echo -e "$choice"2"$info"\) "$choice"Button"$info"s"$answer"
read padconf
fi
if [ "$padconf" = 1 -o "$padconf" = "Stick" -o "$padconf" = "stick" -o "$padconf" = "s" -o "$padconf" = "S" ]
then
echo -e "$info"Attack with right stick"$normal"
sudo xboxdrv$pad -c bindingofisaacS.xboxdrv -s --led 2
elif [ "$padconf" = 2 -o "$padconf" = "Buttons" -o "$padconf" = "buttons" -o "$padconf" = "Button" -o "$padconf" = "button" -o "$padconf" = "b" -o "$padconf" = "B" ]
then
echo -e "$info"Attack with the buttons + triggers"$normal"
echo
sudo xboxdrv$pad -c bindingofisaacB.xboxdrv -s --led 2
else
echo -e $info$padconf$mistake that is not a valid choice.
fi
printf $normal
\ No newline at end of file
[xboxdrv]
ui-clear=true
trigger-as-button = true
#watch out AZERTY
[ui-axismap]
x1=KEY_Q:KEY_D
y1=KEY_Z:KEY_S
x2^dead:6000 = REL_X:750:-1
y2^dead:6000 = REL_Y:750:-1
[ui-buttonmap]
du = KEY_Z
dd = KEY_S
dl = KEY_Q
dr = KEY_D
rt = BTN_LEFT
#attack
y = KEY_UP
b = KEY_RIGHT
a = KEY_DOWN
x = KEY_LEFT
#bomb items
rb = KEY_E
lb = KEY_SPACE
lt = KEY_A
#pause
back = KEY_ESC
# EOF #
\ No newline at end of file
[xboxdrv]
ui-clear=true
trigger-as-button = true
#watch out AZERTY
[ui-axismap]
x1=KEY_Q:KEY_D
y1=KEY_Z:KEY_S
x2=KEY_LEFT:KEY_RIGHT
y2=KEY_UP:KEY_DOWN
#x2^dead:6000 = REL_X:750:-1
#y2^dead:6000 = REL_Y:750:-1
#bomb item
[ui-buttonmap]
a = KEY_E
b = KEY_SPACE
y = KEY_A
rb = KEY_E
lb = KEY_SPACE
#attack
[ui-buttonmap]
du = REL_Y:-15
dd = REL_Y:15
dl = REL_X:-15
dr = REL_X:15
rt = BTN_LEFT
[ui-buttonmap]
back = KEY_ESC
# EOF #
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment