Build Your Own Arcade Controls Forum

Main => Main Forum => Topic started by: agienne on October 24, 2015, 06:35:53 pm

Title: Any programmable pcbs for Android???
Post by: agienne on October 24, 2015, 06:35:53 pm
  Hello all.  I'm wanting to build a gamepad that's 100% compatible to my Nvidia Shield (Android TV) and was wondering if either the I-Pac or KADE were able to be programmed for some of the advanced key sends.  I want the Android Back and Home to be pushbuttons. 

I've done some research, and if the hardware device connected doesn't have a matching vendor id, it will default to a generic key layout.  looking at this file Generic.kl (http://pastebin.com/t0vmgea2 (http://pastebin.com/t0vmgea2))  I'd love to be able to match the gamepad to some of these upper numbered keysends.

Key 158 back
key 102   MOVE_HOME
key 304   BUTTON_A
key 305   BUTTON_B
key 306   BUTTON_C
key 307   BUTTON_X
key 308   BUTTON_Y
key 309   BUTTON_Z
key 310   BUTTON_L1
key 311   BUTTON_R1
key 312   BUTTON_L2
key 313   BUTTON_R2
key 314   BUTTON_SELECT
key 315   BUTTON_START
key 316   BUTTON_MODE
key 317   BUTTON_THUMBL
key 318   BUTTON_THUMBR

      I should add, that I don't want to root my Shield and make a key layout file.  I hope I don't have to rip apart a controller and solder. but if I must, I must! 
Any help is appreciated, and it's quite possible that I have no idea what I'm talking about.  Thanks
Title: Re: Any programmable pcbs for Android???
Post by: PL1 on October 24, 2015, 08:28:38 pm
  Hello all.  I'm wanting to build a gamepad that's 100% compatible to my Nvidia Shield (Android TV) and was wondering if either the I-Pac or KADE were able to be programmed for some of the advanced key sends.  I want the Android Back and Home to be pushbuttons. 
Welcome aboard, Agienne.   ;D

Just to clarify what you are trying to do/build:

  1. Do you want to use arcade-style joysticks and buttons or a handheld gamepad?

  2. Are you looking for a gamepad-style firmware, a keyboard-style firmware, or a composite-device firmware that combines both?  (Keyboard-style would probably be the easiest.)

Android Back and Home buttons sound like they might be good keypresses to add to the KADE options.

Degenatrons (http://forum.arcadecontrols.com/index.php?action=profile;u=34137) has made some requested KADE firmwares with custom keypresses and he also modded Android MK808 and MK908 TV Sticks for a project here (http://forum.arcadecontrols.com/index.php/topic,132937.msg1367501.html#msg1367501), you may want to drop him a PM.

If you're considering "rolling your own" by editing the keycodes, look at the KADE miniArcade source code here (https://github.com/kadevice/KADE).

"KADE/open software/firmwares/KADE miniArcade/sources/kade-mame-2p/mappings.c" looks like it would be relatively easy to edit the keycodes then compile your own custom firmware, but I've never tried it.   :dunno


Scott
Title: Re: Any programmable pcbs for Android???
Post by: agienne on October 24, 2015, 09:57:50 pm
    I'd like to make an arcade-style joystick setup that will control all of the Android functions.  Whatever kind of firmware gets me there will do!  I'm not worried about being able to switch it to a PC or Xbox, it's sole purpose will be for the Nvidia Shield. .. and the only way I'm going to get one to live in our living room is if one looks great, does everything, and is intuitive.

   I have an iCade that I rewired with the cheap Zero Delay ebay pcb. The Joystick works with the system, but all the buttons seem to work as "Enter".  I've just been looking for a way hook up a fully functional one without rooting the system.

  The Kade keymaps look VERY editable.  Fantastic!  I won't know what I'm doing, but I'll buy one and try messing around. 

Thanks for your help!
Andrew
Title: Re: Any programmable pcbs for Android???
Post by: PL1 on October 24, 2015, 10:44:10 pm
I have an iCade that I rewired with the cheap Zero Delay ebay pcb. The Joystick works with the system, but all the buttons seem to work as "Enter".  I've just been looking for a way hook up a fully functional one without rooting the system.
Enable Beta Updates (Advanced - Beta Version - Receive Beta Updates) in KADE Loader (http://kadevice.com/loader/setup.zip) for the iCade (Beta) firmware.   ;D

Related thread here (http://forum.arcadecontrols.com/index.php/topic,131770.0.html).

There are several iCade threads on the KADE Forums (http://kadevice.com/forum/), too.


Scott
Title: Re: Any programmable pcbs for Android???
Post by: AndyWarne on October 26, 2015, 11:10:03 am
We have special firmware for the U-HID board which exactly emulates the controls on an Nvidia Shield. This firmware was developed for Nvidia so I know it works.

Also the forthcoming Bluetooth version of this board uses the same data format.

andy@ultimarc.com