This repository has been archived by the owner on May 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 178
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2831 from brooksytech/dev
RK3399: Rename built in gamepad to rg552_joypad to avoid conflicts
- Loading branch information
Showing
17 changed files
with
125 additions
and
34 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/emulators/standalone/dolphin-sa/config/RK3399/GCPadNew.ini.south
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/emulators/standalone/dolphin-sa/config/RK3399/GCPadNew.ini.west
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/emulators/standalone/dolphin-sa/config/RK3399/WiiControllerProfiles/classic.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/emulators/standalone/dolphin-sa/config/RK3399/WiiControllerProfiles/hremote.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/emulators/standalone/dolphin-sa/config/RK3399/WiiControllerProfiles/nunchuck.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/emulators/standalone/dolphin-sa/config/RK3399/WiiControllerProfiles/vremote.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
packages/emulators/tools/retroarch-joypads/gamepads/rg552_joypad.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
input_driver = "udev" | ||
input_device = "rg552_joypad" | ||
input_device_display_name = "Anbernic RG552 Joypad" | ||
|
||
input_b_btn = "0" | ||
input_a_btn = "1" | ||
input_x_btn = "2" | ||
input_y_btn = "3" | ||
|
||
input_select_btn = "8" | ||
input_start_btn = "9" | ||
|
||
|
||
input_l_btn = "4" | ||
input_r_btn = "5" | ||
input_l2_btn = "6" | ||
input_r2_btn = "7" | ||
input_l3_btn = "11" | ||
input_r3_btn = "12" | ||
|
||
input_up_btn = "13" | ||
input_down_btn = "14" | ||
input_left_btn = "15" | ||
input_right_btn = "16" | ||
|
||
input_l_x_minus_axis = "-0" | ||
input_l_x_plus_axis = "+0" | ||
input_l_y_minus_axis = "-1" | ||
input_l_y_plus_axis = "+1" | ||
|
||
input_r_x_minus_axis = "-2" | ||
input_r_x_plus_axis = "+2" | ||
input_r_y_minus_axis = "-3" | ||
input_r_y_plus_axis = "+3" | ||
|
||
# Hotkeys | ||
input_enable_hotkey_btn = "8" | ||
input_exit_emulator_btn = "9" | ||
|
||
input_menu_toggle_btn = "2" | ||
input_fps_toggle_btn = "3" | ||
|
||
input_load_state_btn = "4" | ||
input_save_state_btn = "5" | ||
|
||
input_rewind_btn = "11" | ||
input_toggle_fast_forward_btn = "12" |
16 changes: 16 additions & 0 deletions
16
packages/hardware/quirks/devices/Anbernic RG552/050-game-configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# SPDX-License-Identifier: GPL-2.0 | ||
# Copyright (C) 2024-present JELOS (https://github.com/JustEnoughLinuxOS) | ||
|
||
. /etc/profile | ||
|
||
#Remap joypad name to rg552_joypad | ||
sed -i '/^mapping_name = retrogame_joypad/c\mapping_name = rg552_joypad' /storage/.config/flycast/mappings/SDL_retrogame_joypad.cfg | ||
sed -i '/retrogame_joypad/c\[rg552_joypad]' /storage/.config/mupen64plus/custominput.ini | ||
sed -i '/name = "retrogame_joypad"/c\name = "rg552_joypad"' /storage/.config/mupen64plus/mupen64plus.cfg | ||
|
||
#Fix ES input | ||
for config in "/storage/.config/emulationstation/es_input.cfg"; do | ||
if ! grep -q rg552_joypad "$config"; then | ||
cp -r /usr/config/emulationstation/es_input.cfg /storage/.config/emulationstation/es_input.cfg | ||
fi | ||
done; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters