Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
keymapping of OMXplayer with gamepad
#1
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
Reply
#2
If you want, here is another way to do it : https://github.com/porcinus/NNS-Game-Boy...ionstation
But you may need to change the keys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)