Homepage › Forums › RetroPie Project › Controller Configuration in RetroPie › [SOLVED] Hotkeys configuration : Switch the shaders ingame (Retropie v.3b4)
- This topic has 15 replies, 5 voices, and was last updated 8 years, 8 months ago by mydriaze.
-
AuthorPosts
-
07/10/2015 at 20:49 #101809kommissarParticipant
Hi everyone,
After digging the net for weeks, i didn’t find the answer to my issue.
I can’t set the hotkeys for switching the shaders ingame (previous/next shaders) in Retropie v.3b4 (rpi2).
I successfully set these hotkeys in the Retropie v.3 (rpi1) and v.2.6 (rpi1).
I just bought a Raspberry Pi 2, so i wanted to put the correct system version on my new Pi.This is my current config for my controller (iBuffalo Snes controller) :
# ====================================================================== # Config : iBuffalo SNES Classic Gamepad : Par défaut # ====================================================================== input_a_btn = "0" input_b_btn = "1" input_x_btn = "2" input_y_btn = "3" input_start_btn = "7" input_select_btn = "6" input_l_btn = "4" input_r_btn = "5" input_up_axis = "-1" input_down_axis = "+1" input_left_axis = "-0" input_right_axis = "+0" # ====================================================================== # Config : iBuffalo SNES Classic Gamepad : Hotkeys # [Select] + [Start] : Leave the game # [Select] + [R] : Save state # [Select] + [L] : Load state # [Select] + [B] : Reset # [Select] + [DPad-LEFT] : Previous shader # [Select] + [DPad-RIGHT] : Next shader # [Select] + [DPad-DOWN] : Decrease state slot # [Select] + [DPad-UP] : Increase state slot # ====================================================================== input_enable_hotkey_btn = "6" input_exit_emulator_btn = "7" input_save_state_btn = "5" input_load_state_btn = "4" input_reset_btn = "1" input_shader_prev_axis = "-0" input_shader_next_axis = "+0" input_state_slot_increase_axis = "-1" input_state_slot_decrease_axis = "+1"
This config works for the rpi1 version, but not the rpi2.
I also tried with the “btn” version of the hotkey on Y and X (input_shader_prev_btn). Same result. :/
Did i miss something ?PS : Sorry for my english. It’s not my native language. ^^
EDIT : 2015-07-14
Solution : Update RetroArch
In emulationstation : go to Retropie > RETROPIE-SETUP
Then : choose “5 Install individual emulators from binaries or source”
Find retroarch > binary
Reboot
And it works :DBig thanks to buzz for the solution !!!
07/10/2015 at 23:27 #101817FloobMemberI know you’ve said you are using version 3 beta 4, but can you confirm the full path of the file you are showing above?
07/11/2015 at 00:56 #101819kommissarParticipantOf course. It’s the controller configuration file located here :
/opt/retropie/configs/all/retroarch-joypads/USB,2-axis8-buttongamepad.cfgI forgot to precise : when i use the hotkey (SELECT + “left” or “right”), i leave the emulator. Unfortunately, i don’t see any log error message on the screen.
07/11/2015 at 01:34 #101820FloobMemberCan you put on pastebin.com your file
/opt/retropie/configs/all/retroarch.cfg?Also, I’m presuming you havent altered any system specific retroarch.cfg files.
07/11/2015 at 02:45 #101830kommissarParticipantHere, the link to the files :
/opt/retropie/configs/all/retroarch-joypads/USB,2-axis8-buttongamepad.cfg/opt/retropie/configs/all/retroarch.cfg
I didn’t change anything in the /all/retroarch.cfg. But in /mastersystem/retroarch.cfg, i just did these changes :
#video_shader = /opt/retropie/emulators/retroarch/shader/phosphor.glslp video_shader_enable = true
I enable the shaders changes and comment the default used shader.
EDIT : After a purge of /tmp : I got a log !!!
/opt/retropie/supplementary/runcommand/runcommand.sh: line 671: 3983 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-picodrive/picodrive_libretro.so --config /opt/retropie/configs/mastersystem/retroarch.cfg "/home/pi/RetroPie/roms/mastersystem/Mortal Kombat (UE) [!].sms" --appendconfig /tmp/retroarch.cfg
It seems something wrong occurred during the command execution. I checked all the paths used in the command are correct / exists. (with ls -al <path>)
07/11/2015 at 03:15 #101832FloobMemberTry changing
input_enable_hotkey = nul
to
input_enable_hotkey = altin your
/opt/retropie/configs/all/retroarch.cfgThen in game, hold “select” and check “m” and “n” work to change shader.
07/11/2015 at 03:41 #101833kommissarParticipantI tried it. The behavior is the same : exit to emulationstation.
Same error in the log too : runcommand.sh line 671: 3034 Segmentation fault
:/07/11/2015 at 11:54 #101847FloobMemberCan you try from a clean retropie 3 beta 4, then just add
input_shader_prev_axis = “-0”
input_shader_next_axis = “+0”to the controller file it generates?
07/11/2015 at 15:24 #101856kommissarParticipantWell, i just tried on a fresh install of Retropie v.3b4 and … the behavior is the same : runcommand.sh line 671: 3034 Segmentation fault.
The steps i did for this install :
* Write the image on SD card
* Detect my pad with emulationstation (/opt/retropie/configs/all/retroarch-joypads/USB,2-axis_8-button_gamepad__.cfg generated)
* Add “Alex kidd in Miracle World” (all my childhood :D) in mastersystem roms directory.
* Edit the retroarch.cfg in mastersystem in order to enable shaders (with and without the 1st line):video_shader = /opt/retropie/emulators/retroarch/shader/phosphor.glslp video_shader_enable = true
* Edit USB,2-axis_8-button_gamepad__.cfg : i tested 2 configs :
/* other buttons... */ input_shader_prev_axis = "-1" input_shader_next_axis = "+1" input_enable_hotkey_btn = "6"
and
/* other buttons... */ input_enable_hotkey_btn = "6" input_shader_prev_axis = "-1" input_shader_next_axis = "+1"
I swapped +/-0 and +/-1, same result on the respective shader assign button.
The complete log file : /tmp/runcommand.log
RetroArch: rarch_log_libretro: [libretro INFO] :: detected SMS ROM RetroArch [WARN] :: resolve_extensions :: [GL]: GLES implementation does not have BGRA8888 extension. 32-bit path will require conversion. /opt/retropie/supplementary/runcommand/runcommand.sh: line 671: 4442 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-picodrive/picodrive_libretro.so --config /opt/retropie/configs/mastersystem/retroarch.cfg "/home/pi/RetroPie/roms/mastersystem/Alex Kidd in Miracle World (UE) [!].sms" --appendconfig /tmp/retroarch.cfg
07/12/2015 at 20:30 #101941FloobMemberI just gave this a go and I get the same results.
Its fine in RetroPie 3 beta 2.My log file was
RetroArch: rarch_log_libretro: [libretro INFO] :: Frontend supports RGB565 - will use that instead of XRGB1555. RetroArch: rarch_log_libretro: [libretro INFO] :: Loading /home/pi/RetroPie/roms/nes/Castlevania (Europe).nes... RetroArch: rarch_log_libretro: [libretro INFO] :: PRG ROM: 8 x 16KiB RetroArch: rarch_log_libretro: [libretro INFO] :: CHR ROM: 0 x 8KiB RetroArch: rarch_log_libretro: [libretro INFO] :: ROM CRC32: 0xa93527e2 RetroArch: rarch_log_libretro: [libretro INFO] :: ROM MD5: 0xab930e91eb9bb51e8acbf7bf2187f369 RetroArch: rarch_log_libretro: [libretro INFO] :: Mapper #: 2 RetroArch: rarch_log_libretro: [libretro INFO] :: Mapper name: UNROM RetroArch: rarch_log_libretro: [libretro INFO] :: Mirroring: Vertical RetroArch: rarch_log_libretro: [libretro INFO] :: Battery-backed: No RetroArch: rarch_log_libretro: [libretro INFO] :: Trained: No RetroArch: rarch_log_libretro: [libretro INFO] :: RetroArch [WARN] :: resolve_extensions :: [GL]: GLES implementation does not have BGRA8888 extension. 32-bit path will require conversion. RetroArch [WARN] :: gl_glsl_init :: [GL]: Stock GLSL shaders will be used. /opt/retropie/supplementary/runcommand/runcommand.sh: line 671: 3047 Segmentation fault /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-fceumm/fceumm_libretro.so --config /opt/retropie/configs/nes/retroarch.cfg "/home/pi/RetroPie/roms/nes/Castlevania (Europe).nes" --appendconfig /tmp/retroarch.cfg
I’ll raise an issue on Github.
07/12/2015 at 21:34 #101945kommissarParticipantOk, thanks to confirm that it was a bug. I started to being mad by installing again & again images on SD, checking all the config files in order to find my mistake.
You saved my mental health. :D07/14/2015 at 16:06 #102031petrockblogKeymasterupdate retroarch from binary via menu 5 in retropie-setup. there are multiple retroarch bugs in the last image which have been solved since.
07/14/2015 at 17:05 #102034kommissarParticipantThanks !!!! It works perfectly now !!!!
01/30/2016 at 22:19 #115696nemo1966ParticipantHi guys – pretty new to RetroArch/Pie. Struggling with a few things and this is one of them! Latest version of RetroPie from the site.
My /opt/retropie/configs/all/retroarch-joypads/
input_device = "raphnet.net (S)NES/Atari_USB" input_driver = "udev" input_l2_btn = "6" input_start_btn = "3" input_exit_emulator_btn = "3" input_up_axis = "-1" input_a_btn = "4" input_b_btn = "0" input_reset_btn = "0" input_down_axis = "+1" input_r2_btn = "7" input_right_axis = "+0" input_state_slot_increase_axis = "+0" input_x_btn = "5" input_menu_toggle_btn = "5" input_select_btn = "2" input_enable_hotkey_btn = "2" input_y_btn = "1" input_left_axis = "-0" input_state_slot_decrease_axis = "-0" # ====================================================================== # Config : raphnet.net (S)NES/Atari_USB : Hotkeys # [Select] + [Start] : Leave the game # [Select] + [R] : Save state # [Select] + [L] : Load state # [Select] + : Reset # [Select] + [DPad-DOWN] : Previous shader # [Select] + [DPad-UP] : Next shader # [Select] + [DPad-LEFT] : Decrease state slot # [Select] + [DPad-RIGHT] : Increase state slot # ====================================================================== input_save_state_btn = "7" input_load_state_btn = "6" input_reset_btn = "1" input_shader_prev_axis = "-1" input_shader_next_axis = "+1"
I have applied a single shader and it works…. but i cannot get the shader switching to work.
Also the STATE Hotkeys work – but not the Shaders
Any ideas?
PS I have updated the binary as well.
01/31/2016 at 19:43 #115792nemo1966ParticipantSeems to be broken – RetroPie seems to be getting more and more abstracted and less seems to work. :-(
03/06/2016 at 17:32 #119340mydriazeParticipantAny update on this? I can’t cycle through the shader neither. Xboxcontroller config file seems ok, but nothing is working.
By the way, I just plugged in keyboard, but the “m” and “n” key are not working. Can someone confirm if it’s working or not at the moment with the last build?
-
AuthorPosts
- The forum ‘Controller Configuration in RetroPie’ is closed to new topics and replies.