Author Topic: Setting up a GPIO input device  (Read 404 times)

Offline SuperTasche

  • bit
  • Posts: 2
    • View Profile
Setting up a GPIO input device
« on: February 03, 2019, 04:00:26 AM »
Hello everyone.

During the couple last days I have been doing some concept work on a new project of mine.
For that I want to use an Odroid C2 with the end goal of playing retro games mobile (first and foremost Zelda: OoT).
My search has brought me here, to this wonderful project of porting mupen64plus to Android.

Now, a fundamental part of my project is creating my own input device over GPIO (i.e., connecting buttons and analog sticks to the GPIO interface). I have been trying to look up info on setting up a device like this for Android and/or mupen64plus ae, however I could only find some blogpost about controlling app execution through GPIO.

I have found your repository of this project on github and before looking through the code myself, I wanted to ask here if there is some kind of API for realising what I have in mind? Also, if you have some input or advice on my intentions, I would be more than happy! :)

Best regards from Germany,
Johannes

Offline fzurita

  • Moderator
  • double
  • *****
  • Posts: 558
    • View Profile
Re: Setting up a GPIO input device
« Reply #1 on: February 04, 2019, 06:09:08 AM »
I don't know much about GPIO, but you will probably have to create your own input plugin. Like this one: https://github.com/mupen64plus/mupen64plus-input-sdl

Offline SuperTasche

  • bit
  • Posts: 2
    • View Profile
Re: Setting up a GPIO input device
« Reply #2 on: February 05, 2019, 02:44:42 PM »
Thanks for the reply. I will definitely look into that plugin and see if it is possible for me to hack something together!

Do you know anyone from the team/contributors who might be interested on working on such a plugin?

Anyway, thanks again for your input. :)

EDIT: Also, I have done some research the last couple of days. So for anyone who is also interested:

The first thing I will try to achieve is making the underlying OS believe the button inputs from GPIO are keyboard input.
What I have found regarding this:
newbielink:https://github.com/notro/fbtft-spindle/wiki/GPIO-keyboard [nonactive]
newbielink:https://github.com/mmoller2k/pikeyd [nonactive]
« Last Edit: February 05, 2019, 02:54:45 PM by SuperTasche »