Merge pull request #605 from fewtarius/dev
Add additional controller configurations for RetroArch and ES.
This commit is contained in:
commit
f9e9532a59
23 changed files with 3630 additions and 53 deletions
|
@ -47,7 +47,7 @@ makeinstall_target() {
|
|||
ln -s /storage/roms/bios ${INSTALL}/usr/config/amiberry/kickstarts
|
||||
|
||||
# Create links to Retroarch controller files
|
||||
ln -s "/etc/retroarch-joypad-autoconfig" "${INSTALL}/usr/config/amiberry/controller"
|
||||
ln -s "/usr/share/libretro/autoconfig" "${INSTALL}/usr/config/amiberry/controller"
|
||||
|
||||
# Copy binary, scripts & link libcapsimg
|
||||
cp -a amiberry* ${INSTALL}/usr/bin/amiberry
|
||||
|
|
|
@ -17,7 +17,7 @@ GAMEPADINFO="$(sdljoytest -skip_loop)"
|
|||
JOYNAME=$(echo "${GAMEPADINFO}" | grep "Joystick 0 name " | sed "s|Joystick 0 name ||" | sed "s|'||g")
|
||||
#
|
||||
|
||||
for file in /etc/retroarch-joypad-autoconfig/*.cfg; do
|
||||
for file in /usr/share/libretro/autoconfig/*.cfg; do
|
||||
GAMEPAD=$(cat "$file" | grep input_device| cut -d'"' -f 2)
|
||||
if [ "${JOYNAME}" == "${GAMEPAD}" ]; then
|
||||
GPFILE="${file}"
|
||||
|
|
|
@ -129,14 +129,7 @@ makeinstall_target() {
|
|||
}
|
||||
|
||||
post_install() {
|
||||
mkdir -p ${INSTALL}/etc/retroarch-joypad-autoconfig
|
||||
if [ -d "${PKG_DIR}/gamepads/device/${DEVICE}" ]
|
||||
then
|
||||
cp -r ${PKG_DIR}/gamepads/device/${DEVICE}/* ${INSTALL}/etc/retroarch-joypad-autoconfig ||:
|
||||
fi
|
||||
|
||||
enable_service tmp-cores.mount
|
||||
enable_service tmp-joypads.mount
|
||||
enable_service tmp-database.mount
|
||||
enable_service tmp-assets.mount
|
||||
enable_service tmp-shaders.mount
|
||||
|
|
|
@ -46,7 +46,7 @@ fi
|
|||
|
||||
pre_configure_target() {
|
||||
case ${DEVICE} in
|
||||
RG351P|RG351V|RG351MP|RG353P|RG503)
|
||||
RG351P|RG351V|RG351MP|RG353P|RG503|RG552)
|
||||
PKG_MAKE_OPTS_TARGET+=" -C yabause/src/libretro platform=rockpro64 HAVE_NEON=0 FORCE_GLES=1"
|
||||
;;
|
||||
*)
|
||||
|
|
32
packages/games/tools/retroarch-joypads/package.mk
Normal file
32
packages/games/tools/retroarch-joypads/package.mk
Normal file
|
@ -0,0 +1,32 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
# Copyright (C) 2020-present Fewtarius
|
||||
|
||||
PKG_NAME="retroarch-joypads"
|
||||
PKG_VERSION="b598316"
|
||||
PKG_LICENSE="GPL"
|
||||
PKG_SITE="https://github.com/libretro/retroarch-joypad-autoconfig"
|
||||
PKG_URL="${PKG_SITE}.git"
|
||||
PKG_DEPENDS_TARGET="toolchain"
|
||||
PKG_LONGDESC="RetroArch joypad autoconfigs."
|
||||
PKG_TOOLCHAIN="manual"
|
||||
|
||||
make_target() {
|
||||
:
|
||||
}
|
||||
|
||||
makeinstall_target() {
|
||||
INSTALLDIR="${INSTALL}/usr/share/libretro/autoconfig"
|
||||
mkdir -p ${INSTALLDIR}
|
||||
for JOYDIR in linuxraw sdl2 udev x xinput
|
||||
do
|
||||
cp ${PKG_BUILD}/${JOYDIR}/*cfg ${INSTALLDIR}
|
||||
done
|
||||
if [ -d "${PKG_DIR}/gamepads/device/${DEVICE}" ]
|
||||
then
|
||||
cp -r ${PKG_DIR}/gamepads/device/${DEVICE}/* ${INSTALLDIR} ||:
|
||||
fi
|
||||
}
|
||||
|
||||
post_install() {
|
||||
enable_service tmp-joypads.mount
|
||||
}
|
|
@ -7,7 +7,7 @@ DefaultDependencies=no
|
|||
What=none
|
||||
Where=/tmp/joypads
|
||||
Type=overlay
|
||||
Options=lowerdir=/etc/retroarch-joypad-autoconfig,upperdir=/storage/joypads,workdir=/storage/.tmp/joypads-workdir
|
||||
Options=lowerdir=/usr/share/libretro/autoconfig,upperdir=/storage/joypads,workdir=/storage/.tmp/joypads-workdir
|
||||
|
||||
[Install]
|
||||
WantedBy=jelos.target
|
|
@ -1,8 +1,19 @@
|
|||
<?xml version="1.0"?>
|
||||
<inputList>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="hotkeyenable" type="key" id="1073741952" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="up" type="key" id="1073741906" value="1" />
|
||||
<input name="down" type="key" id="1073741905" value="1" />
|
||||
<input name="left" type="key" id="1073741904" value="1" />
|
||||
<input name="right" type="key" id="1073741903" value="1" />
|
||||
<input name="a" type="key" id="27" value="1" />
|
||||
<input name="b" type="key" id="13" value="1" />
|
||||
<input name="pagedown" type="key" id="34" value="1" />
|
||||
<input name="pageup" type="key" id="33" value="1" />
|
||||
<input name="select" type="key" id="8" value="1" />
|
||||
<input name="start" type="key" id="32" value="1" />
|
||||
<input name="x" type="key" id="61" value="1" />
|
||||
<input name="y" type="key" id="45" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="joystick" deviceName="GO-Super Gamepad" deviceGUID="190000004b4800000011000000010000">
|
||||
<input name="a" type="button" id="1" value="1" />
|
||||
<input name="b" type="button" id="0" value="1" />
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
<?xml version="1.0"?>
|
||||
<inputList>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="hotkeyenable" type="key" id="1073741952" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="up" type="key" id="1073741906" value="1" />
|
||||
<input name="down" type="key" id="1073741905" value="1" />
|
||||
<input name="left" type="key" id="1073741904" value="1" />
|
||||
<input name="right" type="key" id="1073741903" value="1" />
|
||||
<input name="a" type="key" id="27" value="1" />
|
||||
<input name="b" type="key" id="13" value="1" />
|
||||
<input name="pagedown" type="key" id="34" value="1" />
|
||||
<input name="pageup" type="key" id="33" value="1" />
|
||||
<input name="select" type="key" id="8" value="1" />
|
||||
<input name="start" type="key" id="32" value="1" />
|
||||
<input name="x" type="key" id="61" value="1" />
|
||||
<input name="y" type="key" id="45" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="joystick" deviceName="OpenSimHardware OSH PB Controller" deviceGUID="03000000091200000031000011010000">
|
||||
<input name="a" type="button" id="0" value="1" />
|
||||
<input name="b" type="button" id="1" value="1" />
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
<?xml version="1.0"?>
|
||||
<inputList>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="hotkeyenable" type="key" id="1073741952" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="up" type="key" id="1073741906" value="1" />
|
||||
<input name="down" type="key" id="1073741905" value="1" />
|
||||
<input name="left" type="key" id="1073741904" value="1" />
|
||||
<input name="right" type="key" id="1073741903" value="1" />
|
||||
<input name="a" type="key" id="27" value="1" />
|
||||
<input name="b" type="key" id="13" value="1" />
|
||||
<input name="pagedown" type="key" id="34" value="1" />
|
||||
<input name="pageup" type="key" id="33" value="1" />
|
||||
<input name="select" type="key" id="8" value="1" />
|
||||
<input name="start" type="key" id="32" value="1" />
|
||||
<input name="x" type="key" id="61" value="1" />
|
||||
<input name="y" type="key" id="45" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="joystick" deviceName="OpenSimHardware OSH PB Controller" deviceGUID="03000000091200000031000011010000">
|
||||
<input name="a" type="button" id="0" value="1" />
|
||||
<input name="b" type="button" id="1" value="1" />
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
<?xml version="1.0"?>
|
||||
<inputList>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="hotkeyenable" type="key" id="1073741952" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="up" type="key" id="1073741906" value="1" />
|
||||
<input name="down" type="key" id="1073741905" value="1" />
|
||||
<input name="left" type="key" id="1073741904" value="1" />
|
||||
<input name="right" type="key" id="1073741903" value="1" />
|
||||
<input name="a" type="key" id="27" value="1" />
|
||||
<input name="b" type="key" id="13" value="1" />
|
||||
<input name="pagedown" type="key" id="34" value="1" />
|
||||
<input name="pageup" type="key" id="33" value="1" />
|
||||
<input name="select" type="key" id="8" value="1" />
|
||||
<input name="start" type="key" id="32" value="1" />
|
||||
<input name="x" type="key" id="61" value="1" />
|
||||
<input name="y" type="key" id="45" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="joystick" deviceName="retrogame_joypad" deviceGUID="190000004b4800000111000000010000">
|
||||
<input name="a" type="button" id="1" value="1" />
|
||||
<input name="b" type="button" id="0" value="1" />
|
||||
|
|
|
@ -1,7 +1,18 @@
|
|||
<?xml version="1.0"?>
|
||||
<inputList>
|
||||
<inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1">
|
||||
<input name="hotkeyenable" type="key" id="1073741952" value="1" />
|
||||
<input name="up" type="key" id="1073741906" value="1" />
|
||||
<input name="down" type="key" id="1073741905" value="1" />
|
||||
<input name="left" type="key" id="1073741904" value="1" />
|
||||
<input name="right" type="key" id="1073741903" value="1" />
|
||||
<input name="a" type="key" id="27" value="1" />
|
||||
<input name="b" type="key" id="13" value="1" />
|
||||
<input name="pagedown" type="key" id="34" value="1" />
|
||||
<input name="pageup" type="key" id="33" value="1" />
|
||||
<input name="select" type="key" id="8" value="1" />
|
||||
<input name="start" type="key" id="32" value="1" />
|
||||
<input name="x" type="key" id="61" value="1" />
|
||||
<input name="y" type="key" id="45" value="1" />
|
||||
</inputConfig>
|
||||
<inputConfig type="joystick" deviceName="retrogame_joypad" deviceGUID="190000004b4800000111000000010000">
|
||||
<input name="a" type="button" id="1" value="1" />
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -13,7 +13,7 @@ PKG_EMUS="hatarisa openbor hypseus-singe moonlight hypseus-singe pico-8 flycasts
|
|||
mupen64plussa-core mupen64plussa-rsp-hle mupen64plussa-rsp-cxd4 mupen64plussa-video-glide64mk2 \
|
||||
mupen64plussa-video-gliden64 lzdoom gzdoom ecwolf amiberry raze drastic"
|
||||
|
||||
PKG_RETROARCH="retroarch retroarch-overlays retroarch-assets libretro-database core-info"
|
||||
PKG_RETROARCH="retroarch retroarch-overlays retroarch-joypads retroarch-assets libretro-database core-info"
|
||||
|
||||
LIBRETRO_CORES="2048 81 a5200 atari800 beetle-gba beetle-lynx beetle-ngp beetle-pce beetle-pce-fast beetle-pcfx \
|
||||
beetle-supafaust beetle-supergrafx beetle-vb beetle-wswan bluemsx cannonball cap32 \
|
||||
|
|
Loading…
Reference in a new issue