Enable hotkeys with drastic emulator
This commit is contained in:
parent
b8d2226d59
commit
80c3711565
6 changed files with 52 additions and 6 deletions
|
@ -14,3 +14,4 @@ retroarch #pinning to release versions for stability.
|
|||
vita3k-sa #Patch updates needed.
|
||||
gzdoom-sa #Stick to release versions.
|
||||
openbor #newer versions break controls, needs research.
|
||||
gptokeyb #Newer versions break hotkeys
|
||||
|
|
|
@ -51,11 +51,11 @@ controls_a[CONTROL_INDEX_TOUCH_CURSOR_DOWN] = 65535
|
|||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_LEFT] = 65535
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_RIGHT] = 65535
|
||||
controls_a[CONTROL_INDEX_TOUCH_CURSOR_PRESS] = 65535
|
||||
controls_a[CONTROL_INDEX_MENU] = 65535
|
||||
controls_a[CONTROL_INDEX_SAVE_STATE] = 65535
|
||||
controls_a[CONTROL_INDEX_LOAD_STATE] = 65535
|
||||
controls_a[CONTROL_INDEX_FAST_FORWARD] = 65535
|
||||
controls_a[CONTROL_INDEX_SWAP_SCREENS] = 65535
|
||||
controls_a[CONTROL_INDEX_MENU] = 120
|
||||
controls_a[CONTROL_INDEX_SAVE_STATE] = 115
|
||||
controls_a[CONTROL_INDEX_LOAD_STATE] = 108
|
||||
controls_a[CONTROL_INDEX_FAST_FORWARD] = 116
|
||||
controls_a[CONTROL_INDEX_SWAP_SCREENS] = 109
|
||||
controls_a[CONTROL_INDEX_SWAP_ORIENTATION_A] = 65535
|
||||
controls_a[CONTROL_INDEX_SWAP_ORIENTATION_B] = 65535
|
||||
controls_a[CONTROL_INDEX_LOAD_GAME] = 65535
|
||||
|
|
32
packages/emulators/standalone/drastic-sa/config/drastic.gptk
Normal file
32
packages/emulators/standalone/drastic-sa/config/drastic.gptk
Normal file
|
@ -0,0 +1,32 @@
|
|||
back = \\
|
||||
start = \\
|
||||
a = \\
|
||||
a_hk = a
|
||||
b = \\
|
||||
b_hk = b
|
||||
x = \\
|
||||
x_hk = x
|
||||
y = \\
|
||||
y_hk = y
|
||||
l1 = \\
|
||||
l1_hk = l
|
||||
l2 = \\
|
||||
l2_hk = m
|
||||
l3 = \\
|
||||
r1 = \\
|
||||
r1_hk = s
|
||||
r2 = \\
|
||||
r2_hk = t
|
||||
r3 = \\
|
||||
up = \\
|
||||
down = \\
|
||||
left = \\
|
||||
right = \\
|
||||
left_analog_up = \\
|
||||
left_analog_down = \\
|
||||
left_analog_left = \\
|
||||
left_analog_right = \\
|
||||
right_analog_up = \\
|
||||
right_analog_down = \\
|
||||
right_analog_left = \\
|
||||
right_analog_right = \\
|
|
@ -26,6 +26,7 @@ makeinstall_target() {
|
|||
mkdir -p ${INSTALL}/usr/config/drastic/config
|
||||
cp -rf ${PKG_BUILD}/drastic_aarch64/* ${INSTALL}/usr/config/drastic/
|
||||
cp -rf ${PKG_DIR}/config/${DEVICE}/* ${INSTALL}/usr/config/drastic/config/
|
||||
cp -rf ${PKG_DIR}/config/drastic.gptk ${INSTALL}/usr/config/drastic/
|
||||
}
|
||||
|
||||
post_install() {
|
||||
|
|
|
@ -7,6 +7,11 @@
|
|||
|
||||
jslisten set "-9 drastic"
|
||||
|
||||
#load gptokeyb support files
|
||||
control-gen_init.sh
|
||||
source /storage/.config/gptokeyb/control.ini
|
||||
get_controls
|
||||
|
||||
#Copy drastic files to .config
|
||||
if [ ! -d "/storage/.config/drastic" ]; then
|
||||
mkdir -p /storage/.config/drastic/
|
||||
|
@ -26,6 +31,11 @@ do
|
|||
fi
|
||||
done
|
||||
|
||||
#Copy drastic files to .config
|
||||
if [ ! -f "/storage/.config/drastic/drastic.gptk" ]; then
|
||||
cp -r /usr/config/drastic/drastic.gptk /storage/.config/drastic/
|
||||
fi
|
||||
|
||||
#Make drastic savestate folder
|
||||
if [ ! -d "/storage/roms/savestates/nds" ]; then
|
||||
mkdir -p /storage/roms/savestates/nds
|
||||
|
@ -41,4 +51,6 @@ ln -sf /storage/roms/nds /storage/.config/drastic/backup
|
|||
|
||||
cd /storage/.config/drastic/
|
||||
@LIBEGL@
|
||||
$GPTOKEYB "drastic" -c "drastic.gptk" &
|
||||
./drastic "$1"
|
||||
kill -9 $(pidof gptokeyb)
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# Copyright (C) 2021-present Shanti Gilbert (https://github.com/shantigilbert)
|
||||
|
||||
PKG_NAME="gptokeyb"
|
||||
PKG_VERSION="be8478deed8552293f5ae66cbcf415d23de9be0f"
|
||||
PKG_VERSION="0303b36b5376a9b25cf82a53ed4242509daf14e9"
|
||||
PKG_ARCH="any"
|
||||
PKG_LICENSE="GPLv3"
|
||||
PKG_SITE="https://github.com/EmuELEC/gptokeyb"
|
||||
|
|
Loading…
Reference in a new issue