Pageup and pagedown in Libretro cores to browse games
-
Is it possible to assign a pageup and pagedown key in the Libretro cores? To browse games list more easily.
-
It's not specific to the libretro cores, but in emulationstation, your L/R buttons should serve as a page up/down when looking through your game lists. You should also be able to press select and find a letter selector to jump further down the alphabet.
-
I thought it was LB and RB. I am using an IPAC 2 and assigned those keys during the controller setup to z and x (buttons 5 and 6 on my MAME box) they are the defaults for MAME inputs. It does work in the standalone version (mame4all-pi). I am trying to figure out what I am missing in ES when using lr-imame4all. Here's my /opt/retropie/configs/all/emulationstation/es_input.cfg file.
<?xml version="1.0"?> <inputList> <inputAction type="onfinish"> <command>/opt/retropie/supplementary/emulationstation/scripts/inputconfiguration.sh</command> </inputAction> <inputConfig type="keyboard" deviceName="Keyboard" deviceGUID="-1"> <input name="a" type="key" id="1073742048" value="1"/> <input name="b" type="key" id="1073742050" value="1"/> <input name="down" type="key" id="1073741905" value="1"/> <input name="left" type="key" id="1073741904" value="1"/> <input name="leftbottom" type="key" id="122" value="1"/> <input name="right" type="key" id="1073741903" value="1"/> <input name="rightbottom" type="key" id="120" value="1"/> <input name="select" type="key" id="53" value="1"/> <input name="start" type="key" id="49" value="1"/> <input name="up" type="key" id="1073741906" value="1"/> <input name="x" type="key" id="1073742049" value="1"/> <input name="y" type="key" id="32" value="1"/> </inputConfig> <inputConfig type="joystick" deviceName="Xbox Gamepad (userspace driver)"> <input name="pagedown" type="button" id="5" value="1"/> <input name="start" type="button" id="9" value="1"/> <input name="pageup" type="button" id="4" value="1"/> <input name="up" type="hat" id="0" value="1"/> <input name="b" type="button" id="1" value="1"/> <input name="a" type="button" id="0" value="1"/> <input name="down" type="hat" id="0" value="4"/> <input name="right" type="hat" id="0" value="2"/> <input name="select" type="button" id="8" value="1"/> <input name="left" type="hat" id="0" value="8"/> </inputConfig> </inputList>
-
@buzz I'm not sure why but I had to redo Input Configuration to get those two keys working again. All the other keys worked fine except pageup and pagedown (left bottom and right bottom). It's like ES forgot/ignored those two values even though they are present in the es_input.cfg file. I was pointing that out as I saw some other bug reports pertaining to those two keys.
-
They work, you just have to restart ES after configuration as mentioned before.
-
@BuZz said in Pageup and pagedown in Libretro cores to browse games:
They work, you just have to restart ES after configuration as mentioned before.
Sorry I wasn't completely clear. What I was doing before was using mame4all-pi and they worked fine, pageup and pagedown that is. Then I switched over to lr-imame4all to take advantage of DaveJ's scanlines shader. When I switched emulators just those two keys stopped working. I could still start, exit and play games but I couldn't pageup and pagedown in the detail view. If I went back to mame4all-pi they worked fine. The only way to get them working in lr-imame4all was reconfigure the inputs a second time and of course stop and start ES.
It was the last thing I thought of trying since I figured the inputs were configured already and everything was working. When I switched emulators those two keys weren't being recognized by ES anymore. The keys worked fine in game but not ES when all they other keys were working. For some reason those two keys were bumped from the roster sort to speak. :)
-
Doesn't make much sense to me as switching emulator has no connection to Emulation Station at all.
-
@BuZz said in Pageup and pagedown in Libretro cores to browse games:
Doesn't make much sense to me as switching emulator has no connection to Emulation Station at all.
I know it doesn't directly but something with the interoperability of the "parts/modules" that make RetroPie work as a whole. Basically there's a lot of moving parts in RetroPie which I can't begin to fathom and I thought ES was the first line of capturing input to be passed on which changed with the emulator. I would like to think I am clever enough to make this stuff up but not really. It required a second reconfigure to make it a go when switching emulators which isn't a big deal at all. I would assume that since it didn't make sense then it's doing something it shouldn't have done was my whole point in the first place that left me scratching my head. I do have a tendency to reach out to folks simply to talk and interact which creates that sense of community. I know you have a full plate and not much time for idle chat really but I do appreciate the response and it's working fine now.
-
I suspect it's the same issue I mentioned. However, when configuring a controller in ES it just saves a temporary config and calls an additional set of scripts that generate configs for ES, and libretro emulators etc. ES then requires a restart to pick up the page up/down properly, due to a bug which I have not had a chance to look at yet
When switching emulator, ES knows nothing about it. It calls the same commandline no matter what.
runcommand.sh
handles the rest and decides which emulator/command to launch based on the emulators.cfg for the system requested (and its own configuration for per rom emulator choices). -
I do see your point on why it doesn't make sense. I had to read through it a few times. I didn't know it was still an outstanding bug, maybe when it's squashed it will make proper sense. I am using an IPAC as input. It's the only input I have connected but when I go into Input Configuration it shows 5 devices detected though. I was assuming since I am loading drivers for 4 controllers as default through the RetroPie Setup--Option 829 (Xbox / Xbox 360 gamepad driver) and one IPAC are the makeup of the 5 devices I hope.
It's been a whole lot of years but I originally went to school for programming and mainly worked with the wordy COBOL, RPG, Fortran and a bit of C for doing simple conversions of data. Basically I would read comma, space or whatever delimited data into a structure with a subscript, rearrange the data and save it back out. Then import it into shipping systems like UPS, FedEx. Basically it was names, addresses, city, state, etc. I can follow a bit or least some of it makes sense.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.