Author Topic: MK802 IV - controls...  (Read 6098 times)

Offline argon0

  • bit
  • Posts: 6
    • View Profile
MK802 IV - controls...
« on: June 03, 2013, 03:18:20 PM »
Mupen64 seems to work really well on this little thing, I only say seems to as I can't really control it ATM.

There's a really nice remote control via Android phones which looks like it'd work.... If the controls in game were further from the edge of the screen...

(so the "left stick" for example can't get to where the stick is in mupen).

Are there any custom controls where the controls are more central to the screen - for this exact type of problem?

(MK802s are a series of Android TV Dongles by RikoMagic BTW)

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: MK802 IV - controls...
« Reply #1 on: June 03, 2013, 03:48:57 PM »
Do you have a wired PC, Xbox, or PS3 controller laying around?  If so, try plugging that into the USB port and see if you can control anything that way.
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: MK802 IV - controls...
« Reply #2 on: June 03, 2013, 03:55:30 PM »
I take it the problem is with TV overscan?  I'd grab one of the default layouts and modify it.  You should be able to adjust the X and Y percentages to move the controls around.  They currently use percentages like 0 and 100 to "snap" to the edges of the screen, so you'll have to increase/ decrease those numbers to move them inside the screen.

Of course a better solution would be to use an external joystick, as littleguy suggests.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: MK802 IV - controls...
« Reply #3 on: June 03, 2013, 04:02:06 PM »
This is a google tv device, no touchscreen.
http://www.amazon.com/MK802-Android-Google-Player-Allwinner/dp/B008BFXOZE

I think he's referring to the "use another phone as a controller" app (forget the name of it) which doesn't have N64 style button layouts (??)
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3496
  • Developer
    • View Profile
    • PaulsCode.Com
Re: MK802 IV - controls...
« Reply #4 on: June 03, 2013, 04:15:29 PM »
Right, I know it is a TV device -- I assumed you were mapping an external controller to simulate touch events.  If you are talking about BT Controller IME, it should work (I worked with the developer Droidbeans to add support).  If you need a different layout for that app, I'd shoot an email to him.  He's a pretty helpful developer.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline argon0

  • bit
  • Posts: 6
    • View Profile
Re: MK802 IV - controls...
« Reply #5 on: June 03, 2013, 06:11:58 PM »
Blimey that was quick!

Essentially what I am trying to use is a variant of Droidmote.

It has a whole load of buttons/control nubs/control sticks available (as well as keyboard/mouse/etc). You can place them anywhere on the screen, but not resize them. You place the buttons over the on screen touch controls (so for example you put RK remote button A over the location of the accelerator in driving games, put the left stick over the control area for steering). Then on the remote app (on another android device) you place the corresponding buttons wherever you want them on the screen - so you might have A button on the left, and the "left" stick on the right - if you want.

The problem with Mupen is that the controls are too near the edges of the screen, so you can't get the "virtual controls" over the right bit of the screen... (wish I could post a screenshot, but the current FW doesn't give me that option....)

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: MK802 IV - controls...
« Reply #6 on: June 03, 2013, 06:48:43 PM »
You have a few options.  The easiest is to simply resize the virtual buttons in mupen.  Settings->Input->Touchscreen->Button scale.  Just scale them up or down so that they match the size of your remote app.  After you have it all set up, set button transparency (same menu) to 0% to hide them (they're still fully functional).

Your second option is to copy the touchscreen skin .ini files to another location on your device and then modify them so that the buttons are in better locations.  The directions for how to customize the files are here.  Then go to the Touchscreen menu and select "Custom" for button layout, and then navigate to your custom folder in the setting underneath.
« Last Edit: June 03, 2013, 06:50:14 PM by littleguy »
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline argon0

  • bit
  • Posts: 6
    • View Profile
Re: MK802 IV - controls...
« Reply #7 on: June 03, 2013, 06:53:38 PM »
Quick addition. I've managed to control Mupen from a USB keyboard, which was cool, and play Mario Kart, at 100% so fairly happy...

But would like to use something a little smaller (i.e. The Android remote...)... I managed to take a screenshot, which you can see over here:
https://plus.google.com/u/0/102221067073073008496/posts/ZoyxMzmJozp [nofollow]

Was just posting the above when littleguy posted - cheers - don't think simple resizing will work as the problem is getting the virtual controls into the corners... I guess editing the skin.ini files - where are they located?

Cheers & G'night

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: MK802 IV - controls...
« Reply #8 on: June 03, 2013, 08:25:44 PM »
Resizing the Mupen controls should fix your problem.  Try starting with 200%, then maybe backing down slowly.  You shouldn't have any problems with the "corners" -- you'll see what I mean.


If you do still want to tweak the skin, I suggest modifying
sdcard/Android/data/paulscode..../skins/touchscreens/Mupen64Plus-AE-All-Nostick-Full-Height/pad.ini
« Last Edit: June 04, 2013, 11:10:54 AM by littleguy »
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline argon0

  • bit
  • Posts: 6
    • View Profile
Re: MK802 IV - controls...
« Reply #9 on: June 04, 2013, 10:08:52 AM »
TVM, I shall try the % thing first!

Offline argon0

  • bit
  • Posts: 6
    • View Profile
Re: MK802 IV - controls...
« Reply #10 on: June 04, 2013, 06:11:45 PM »
If you just resize the buttons they overlap, or at least the stick the d-pad and L and Z over lap...

Offline argon0

  • bit
  • Posts: 6
    • View Profile
Re: MK802 IV - controls...
« Reply #11 on: June 04, 2013, 06:18:32 PM »
Ah, but if you set Button vertical spacing to Full-height it separates them out - cool :D