Freeplaytech Forum
keymapping of OMXplayer with gamepad - Printable Version

+- Freeplaytech Forum (https://forum.freeplaytech.com)
+-- Forum: Freeplay Zero / Freeplay CM3 / Game Pie Advance (https://forum.freeplaytech.com/forumdisplay.php?fid=24)
+--- Forum: Freeplay Zero/CM3 (AKA GPA) Software (https://forum.freeplaytech.com/forumdisplay.php?fid=26)
+--- Thread: keymapping of OMXplayer with gamepad (/showthread.php?tid=5093)



keymapping of OMXplayer with gamepad - edwong888 - 03-17-2020

Hi, 

[This has been solved.  Please see https://forum.freeplaytech.com/showthread.php?tid=5057 for the solution.]



Since I going to use my freeplay zero as media player as well and auto connect to my home server with NFS. For pptp vpn client setting done refer to the link below -

http://pptpclient.sourceforge.net/howto-debian.phtml

And, i have mounted the NFS share folder to /home/pi/RetroPie/roms/videos using /etc/fstab with the option below successfully -

server:/sharefolder     /home/pi/RetroPie/roms/videos        nfs     rw,relatime,_netdev           0 0


then, i edit the es_systems.cfg which allow emulationstation to read and play video with omxplayer on freeplay LCD.

  <system>
    <name>Media</name>
    <fullname>Media</fullname>
    <path>/home/pi/RetroPie/roms/videos</path>
    <extension>.avi .AVI .mp4 .MP4 .mkv .MKV</extension>
    <command>omxplayer --key-config /home/pi/omxplayerkey.txt --display=1 --win "0 0 640 480" %ROM%</command>
    <platform>Media</platform>
    <theme>Media</theme>
  </system>

you would found the i add the command line "--key-config /home/pi/omxplayerkey.txt" which should be force omxplayer to using new keymapping each time play the video.
However, i cannot found the way to found the HEX code of the gamepad  i'm only allow to play the video non-stop, cannot be exit, forward or backward. any idea. Many thanks.

solved - https://forum.freeplaytech.com/showthread.php?tid=5057
thanks Nic


RE: keymapping of OMXplayer with gamepad - Porcinus - 03-17-2020

If you want, here is another way to do it : https://github.com/porcinus/NNS-Game-Boy-Color-Zero-W/blob/master/SOFTWARE.md#add-media-system-to-emulationstation
But you may need to change the keys.