Skip to content

Commit

Permalink
dev - OpenBOR - joypad fix (#1287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Langerz82 committed Jan 29, 2024
1 parent 1d9903e commit 4b0a842
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
30 changes: 30 additions & 0 deletions packages/sx05re/emulators/openbor/config/gptokeyb/OpenBOR.gptk
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
back = esc
start = enter
guide = enter
a = d
b = a
x = s
y = f
l1 = z
l2 = home
l3 = mouse_right
r1 = x
r2 = end
r3 = shift
up = up
down = down
left = left
right = right
right_analog_up = mouse_movement_up
right_analog_down = mouse_movement_down
right_analog_left = mouse_movement_left
right_analog_right = mouse_movement_right
left_analog_up = up
left_analog_down = down
left_analog_left = left
left_analog_right = right
deadzone_y = 2100
deadzone_x = 1900
deadzone_triggers = 3000
mouse_scale = 512
mouse_delay = 16
Binary file modified packages/sx05re/emulators/openbor/openborff/config/master.cfg
Binary file not shown.
6 changes: 5 additions & 1 deletion packages/sx05re/emulators/openbor/package.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ makeinstall_target() {
cp `find . -name "OpenBOR.elf" | xargs echo` $INSTALL/usr/bin/OpenBOR
cp $PKG_DIR/scripts/*.sh $INSTALL/usr/bin
chmod +x $INSTALL/usr/bin/*

mkdir -p $INSTALL/usr/config/emuelec/configs/openbor
cp $PKG_DIR/config/master.cfg $INSTALL/usr/config/emuelec/configs/openbor/master.cfg
cp $PKG_DIR/config/master.cfg $INSTALL/usr/config/emuelec/configs/openbor/master.cfg

mkdir -p $INSTALL/usr/config/emuelec/configs/gptokeyb
cp -rf ${PKG_DIR}/config/gptokeyb/* $INSTALL/usr/config/emuelec/configs/gptokeyb
}
16 changes: 8 additions & 8 deletions packages/sx05re/emulators/openbor/scripts/openbor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ SAVES="${CONFIGDIR}/Saves"
ln -sf "$1" "${PAKS}"

# only create symlink to master.cfg if its the first time running the pak
if [ ! -f "${SAVES}/${pakname}.cfg" ]; then
if [ ${OB} = "OpenBORff" ]; then
ln -sf "${CONFIGDIR}/masterff.cfg" "${SAVES}/${pakname}.cfg"
else
ln -sf "${CONFIGDIR}/master.cfg" "${SAVES}/${pakname}.cfg"
fi
fi
if [ ! -f "${SAVES}/${pakname}.cfg" ]; then
if [ ${OB} = "OpenBORff" ]; then
ln -sf "${CONFIGDIR}/masterff.cfg" "${SAVES}/${pakname}.cfg"
else
ln -sf "${CONFIGDIR}/master.cfg" "${SAVES}/${pakname}.cfg"
fi
fi

# We start the fake keyboard
gptokeyb openbor &
gptokeyb -c /emuelec/configs/gptokeyb/OpenBOR.gptk openbor &

# Run OpenBOR in the config folder
cd "${CONFIGDIR}"
Expand Down

0 comments on commit 4b0a842

Please sign in to comment.