PaulsCode Forum

Mupen64Plus AE => General Discussion => Topic started by: littleguy on December 18, 2013, 08:20:25 AM

Title: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on December 18, 2013, 08:20:25 AM
Version 3.0 will have an overhauled button mapping system with a lot more built-in profiles.  I'd like to create default profiles for as many devices as possible.

What I need:
 - The key codes/axis codes for the various buttons/sticks/triggers on the device/controller
     - Settings -> Input -> Controller -> menu -> Controller diagnostics (press buttons/sticks to detect codes)
 - Screenshot of the analog info window:
     - Settings -> Input -> Controller -> menu -> Analog info
 - Screenshot of the device info
     - Settings -> Advanced -> Device info (scroll down to bottom before taking a screenshot)
 - Which Android ROM you're using (e.g. stock, Sxelrom, CyanogenMod, etc.)

Still needed
Archos Gamepad
GameStick
JXD S7300

Complete
iControlPad
JXD S7800
Mad Catz C.T.R.L.R (M.O.J.O controller)
MOGA (Pro, Pro Power, Hero Power)
Nyko Playpad series
OUYA
PS3 (wired and wireless via Sixaxis app)
Rumblepad series PC controllers
Shield
USB N64 adapters
Xbox360 & XInput-based PC controllers (e.g. Logitech F710)
Xperia Play
Title: Re: Calling all Nvidia Shield, JXD 7300/7800, Archos Gamepad, and iControlPad owners
Post by: xperia64 on December 18, 2013, 09:05:53 PM
iControlpad Joystick Mode (start+x):
Dpad up: 188 keycode_button_1
Dpad right 189 keycode_button_2
Dpad down 191 keycode_button_4
Dpad left 190 keycode_button_3
L trigger 192 keycode_button_5
R trigger 202 keycode_button_15
Select 196 keycode_button_9
Start 197 keycode_button_10
B 201 keycode_button_14
X 200 keycode_button_13
A 199 keycode_button_12
Y 198 keycode_button_11
Left stick x+y axis
Right stick z+rz axis
http://imgur.com/ydpdoNv
http://imgur.com/zC6scfq
http://imgur.com/RmO5Onr
Title: Re: Calling all Nvidia Shield, JXD 7300/7800, Archos Gamepad, and iControlPad owners
Post by: littleguy on December 18, 2013, 09:46:39 PM
Perfect, thanks :)
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on December 18, 2013, 10:03:43 PM
@xperia64 Which iControlPad buttons would you recommend mapping to the L button and Z trigger?
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: xperia64 on December 19, 2013, 05:33:07 AM
iControlpad Buttons | N64 Buttons
X | A
A | B
L | Z
R | R
Y | L
Start | Start
Obviously dpad as dpad, left joystick as joystick, and right joystick as c buttons
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: beansta on December 19, 2013, 08:06:57 AM
Would u like the values for the iPega bluetooth gamepad too?
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on December 19, 2013, 08:37:14 AM
Sure!
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: beansta on December 23, 2013, 06:24:03 PM
For some reason the iPega just shows up as a generic bluetooth gamepad under the analog info in mupen64+, so i guess the generic settings would work fine for it.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: Abinav Katuru on December 25, 2013, 10:58:12 AM
I need help connecting the nyko playpad in general first. Got it for christmas and it shows both hid and app on and at the place where it shows icade, 1, 2 and mouse it shows icade is on even though it isn't connected to anything. If anyone knows how to solve this please reply asap! I will try to get a pic later.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: DigitalChilly on December 26, 2013, 04:28:04 PM
I have the GameStick, JXD S7300b and JXD S7800b machines. I had to search around to find the menu entries you mentioned... they are not in the same location as your initial post. My question is... how on earth do you sideload the emu into the GameStick? I searched around but couldn't find a definitive answer.

Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: Paul on December 26, 2013, 05:15:56 PM
According to all the reviews I have seen, there is no interface for side-loading apps onto the GameStick.  I actually just got one of these myself (haven't had time to do more than just fire it up).  I'll play around with it to see if there is a way to side-load apps using the SDK (presumably so, or developing for the thing would be virtually impossible).  Ultimately I'll need to look into what it would take to get published on their official store (assuming they are emulator friendly).  I glanced at the documentation (https://gamestick.tv/documentation/) recently, and it doesn't look too complicated.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: Blackdisk on December 28, 2013, 12:08:59 AM
nVidia Shield:
Dpad up: AXIS_HAT_Y: -1.00
Dpad Down: AXIS_HAT_Y: +1.00
Dpad Right: AXIS_HAT_X: +1.00
Dpad Left: AXIS_HAT_X: -1.00
Left analog Up: AXIS_Y: -x.xx
Left analog Down: AXIS_Y: +x.xx
Left analog right: AXIS_X: +x.xx
Left analog left: AXIS_X: -x.xx
Right analog up: AXIS_RZ: -x.xx
Right analog down: AXIS_RZ: +x.xx
Right analog right: AXIS_Z: +x.xx
Right analog left: AXIS_Z: -x.xx
Start: KEYCODE_BUTTON_START: 108
A: KEYCODE_BUTTON_A: 96
B: KEYCODE_BUTTON_B: 97
X: KEYCODE_BUTTON_X: 99
Y: KEYCODE_BUTTON_Y: 100
Right Trigger (R2): AXIS_RTRIGGER and AXIS_GAS: +x.xx
Left Trigger (L2): AXIS_LTRIGGER and AXIS_BRAKE: +x.xx
Right bumper (R1): KEYCODE_BUTTON_R1: 103
Left bumper (L1): KEYCODE_BUTTON_R1: 103


Stock Android
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: DigitalChilly on December 28, 2013, 06:33:03 PM
JXD 7300B
Stock kernel
Device 6 (adc joystick)

D-Pad Up : KeyCode: 19 : KEYCODE_DPAD_UP
D-Pad Down : KeyCode: 20 : KEYCODE_DPAD_DOWN
D-Pad Left : KeyCode: 21 : KEYCODE_DPAD_LEFT
D-Pad Right : KeyCode: 22 : KEYCODE_DPAD_RIGHT
Left Joystick same data as above.
Right joystick does nothing.

Button A : KeyCode: 96 : KEYCODE_BUTTON_A
Button B : KeyCode: 97 : KEYCODE_BUTTON_B
Button X : KeyCode: 99 : KEYCODE_BUTTON_X
Button Y : KeyCode: 100 :KEYCODE_BUTTON_Y
Button Select : KeyCode: 62 : KEYCODE_SPACE
Button Start : KeyCode: 66 : KEYCODE_ENTER
Button L1 : KeyCode: 102 : KEYCODE_BUTTON_L1
Button L2 : KeyCode: 104 : KEYCODE_BUTTON_L2
Button R1 : KeyCode: 103 : KEYCODE_BUTTON_R1
Button R2 : KeyCode: 105 : KEYCODE_BUTTON_R2

Analog Info just sits there and hangs... no output at all.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on December 28, 2013, 07:18:24 PM
Thanks digitalchilly.  Two questions:
 - When analog info "hangs" does it show a popup dialog with nothing in it, or is there no dialog whatsoever?
 - Are you able to actually get analog control working with the current version of the app? i.e. can you get mario to walk or does he always run?
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: DigitalChilly on December 28, 2013, 09:17:47 PM
- When analog info "hangs" does it show a popup dialog with nothing in it, or is there no dialog whatsoever?

The popup appears with the blue "Analog Info" box and a line... but nothing under it. It just sits there doing nothing. I ran the same thing on the JXD 7800B and it works, the dialog pops up with all sorts of info.

 - Are you able to actually get analog control working with the current version of the app? i.e. can you get mario to walk or does he always run?

On the 7300 Mario RUNS everywhere once you setup the controls. On the 7800 it works perfectly right out of the box. Mario walks and runs  8)

Speaking of the JXD 7800B... I was going to send all the Controller Diagnostics but I realized that every key/stick is set to "ADC keytouch" and is simple different X&Y axis values. The only exception are the four shoulder buttons... they are not setup to do anything out of the box.
I think the biggest difference is that on the 7300 the default N64 emu is not Mupen64, but on the 7800 it is the default emu... so all of the settings are pre-done and work.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on December 28, 2013, 09:50:08 PM
Thanks.  The analog info box is actually not hanging... it just doesn't have anything to report so the box is empty.  That confirms my suspicion that the stock 7300b ROM does not properly support analog controls.  If you were to install sxelrom on the 7300 then you'd have true analog control.

Not sure what you mean by mupen is the "default" emu on the 7800.  Perhaps JXD already did the mapping... But in any case, I would still appreciate it if you sent the information along for the 7800, so I can make sure there's an iron-clad profile that works for it.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: DigitalChilly on December 29, 2013, 12:34:23 PM
>Not sure what you mean by mupen is the "default" emu on the 7800.

The JXD line comes pre installed with what they call GameX(Happy Chick) and a default set of emulators to run any game. The system has all of the game-pad keys/controls mapped and setup out of the box. On the 7800 Mupen64 is the default pre-installed emu for N64... on the 7300 it is not the default.

>Perhaps JXD already did the mapping... But in any case, I would still appreciate it if you sent the
>information along for the 7800, so I can make sure there's an iron-clad profile that works for it.

I'll send the info shortly.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: Paul on December 29, 2013, 12:40:24 PM
Out of curiosity, what N64 emulator is pre-installed on the 7300?
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: DigitalChilly on December 29, 2013, 02:41:19 PM
>Out of curiosity, what N64 emulator is pre-installed on the 7300?

It's N64oid. At least that is what came with my 7300B. Some people have mentioned that other N64 emu's including MUPEN64 are on their 7300's. It's possible that JXD changed defaults with each new system release. Not sure.

Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: DigitalChilly on December 29, 2013, 02:55:10 PM
JXD 7800B
Stock kernel
Device 1 (adc joystick)

D-Pad Up : KeyCode: 19 : KEYCODE_DPAD_UP
D-Pad Down : KeyCode: 20 : KEYCODE_DPAD_DOWN
D-Pad Left : KeyCode: 21 : KEYCODE_DPAD_LEFT
D-Pad Right : KeyCode: 22 : KEYCODE_DPAD_RIGHT
Button A : KeyCode: 96 : KEYCODE_BUTTON_A
Button B : KeyCode: 97 : KEYCODE_BUTTON_B
Button X : KeyCode: 99 : KEYCODE_BUTTON_X
Button Y : KeyCode: 100 :KEYCODE_BUTTON_Y
Button Select : KeyCode: 109 : KEYCODE_BUTTON_SELECT
Button Start : KeyCode: 108 : KEYCODE_BUTTON_START
Button L1 : KeyCode: 102 : KEYCODE_BUTTON_L1
Button L2 : KeyCode: 104 : KEYCODE_BUTTON_L2
Button R1 : KeyCode: 103 : KEYCODE_BUTTON_R1
Button R2 : KeyCode: 105 : KEYCODE_BUTTON_R2

Left Joystick
UP - AXIS_X (joystick): +0.00, AXIS_Y (joystick): -1.00, AXIS_Z (joystick): +0.00, AXIS_RZ (joystick): +0.00
DOWN - AXIS_X (joystick): +0.00, AXIS_Y (joystick): +1.00, AXIS_Z (joystick): +0.00, AXIS_RZ (joystick): +0.00
LEFT - AXIS_X (joystick): -1.00, AXIS_Y (joystick): +0.00, AXIS_Z (joystick): +0.00, AXIS_RZ (joystick): +0.00
RIGHT - AXIS_X (joystick): +1.00, AXIS_Y (joystick): +0.00, AXIS_Z (joystick): +0.00, AXIS_RZ (joystick): +0.00

Right Joystick
UP - AXIS_X (joystick): +0.00, AXIS_Y (joystick): +0.00, AXIS_Z (joystick): +0.00, AXIS_RZ (joystick): -0.66
DOWN - AXIS_X (joystick): +0.00, AXIS_Y (joystick): +0.00, AXIS_Z (joystick): +0.00, AXIS_RZ (joystick): +0.66
LEFT - AXIS_X (joystick): +0.00, AXIS_Y (joystick): +0.00, AXIS_Z (joystick): -0.66, AXIS_RZ (joystick): +0.00
RIGHT - AXIS_X (joystick): +0.00, AXIS_Y (joystick): +0.00, AXIS_Z (joystick): +0.66, AXIS_RZ (joystick): +0.00


As you can see these all look much better than what I mentioned in a previous post. Turns out my 7800B is screwed up... I think because I installed Tincore but I can't prove it. So I checked the other 7800B's in the house, the above info is correct for a stock 7800B out of the box.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on December 29, 2013, 04:33:23 PM
Perfect, thanks much.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: Paul on December 29, 2013, 08:38:27 PM
>Out of curiosity, what N64 emulator is pre-installed on the 7300?

It's N64oid. At least that is what came with my 7300B. Some people have mentioned that other N64 emu's including MUPEN64 are on their 7300's. It's possible that JXD changed defaults with each new system release. Not sure.

I wonder if Yongzh gets paid for that :P
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: gdark100 on January 07, 2014, 05:20:35 PM
Ipega pg-9017s

Real Button Name / Keycode / Internal Keycode Name
X Button  -   96  - KEYCODE_BUTTON_A
A Button  -   97  - KEYCODE_BUTTON_B
B Button  -   98  - KEYCODE_BUTTON_C
Y Button  -   99  - KEYCODE_BUTTON_X

L Trigger -   100 - KEYCODE_BUTTON_Y
R Trigger -   101 - KEYCODE_BUTTON_Z

Select    -   104 - KEYCODE_BUTTON_L2
Start     -   105 - KEYCODE_BUTTON_R2

Home - Not a usable button, turn off the controller

DPad Left/Right - AXIS_HAT_X (-1/+1)
DPad Up/Down - AXIS_HAT_Y (-1/+1)

Left Analog (Left/Right) - AXIS_X(-1 to 0/0 to +1)
Left Analog (Up/Down) - AXIS_Y(-1 to 0/0 to +1)

Right Analog (Left/Right) - AXIS_Z(-1 to 0/0 to +1)
Right Analog (Up/Down) - AXIS_RZ(-1 to 0/0 to +1)

Spoiler: "Image Device Info - click here!" • show

(http://i40.tinypic.com/27xi89u.jpg)


Recommended button mapping to n64 controller:

L - Z
R - R

D-Pad - D-Pad
L Analog - Analog
R Analog - C Buttons

A - A
X - B
Y - L (maybe?)

Start - Start
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: Mikhail on January 14, 2014, 03:45:41 PM
Custom profile for GameKeyboard

A=KEYCODE_BUTTON_A, 96
B=KEYCODE_BUTTON_B, 97
Z=KEYCODE_BUTTON_L2 104 and KEYCODE_BUTTON_R2 105

L=KEYCODE_BUTTON_L1, 102
R=KEYCODE_BUTTON_R1, 103

S=KEYCODE_BUTTON_START, 108

C-Up=KEYCODE_I, 37
C-Down=KEYCODE_K, 39
C-Right=KEYCODE_L, 40
C-Left=KEYCODE_J, 38

D-Pad-Up=KEYCODE_DPAD_UP, 19
D-Pad-Down=KEYCODE_DPAD_DOWN, 20
D-Pad-Right=KEYCODE_DPAD_RIGHT, 22
D-Pad-Left=KEYCODE_DPAD_LEFT, 21

Analog-Up=KEYCODE_W, 51
Analog-Down=KEYCODE_S, 47
Analog-Right=KEYCODE_D, 32
Analog-Left=KEYCODE_A, 29

Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on January 14, 2014, 04:06:24 PM
Thanks Mikhail.  Is that a particular device, or are you just suggesting that mapping for any generic keyboard?  If it's a particular device, please post a screenshot of the "analog info" section of the mapping screen.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: xperia64 on January 14, 2014, 04:08:11 PM
Thanks Mikhail.  Is that a particular device, or are you just suggesting that mapping for any generic keyboard?  If it's a particular device, please post a screenshot of the "analog info" section of the mapping screen.
GameKeyboard is an app that provides an onscreen gamepad in place of a keyboard. Also has touch emulation and keymapping. Seems sort of silly.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on January 14, 2014, 04:12:12 PM
Ah!  Perhaps people use it to hack a different touch layout...
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: jahjah440 on February 07, 2014, 10:39:02 PM
Archos Gamepad (Gen 1)

Button
NAME
KeyCode
D-Pad Up
KEYCODE_DPAD_UP
19
D-Pad Down
KEYCODE_DPAD_DOWN
20
D-Pad Right
KEYCODE_DPAD_RIGHT
22
D-Pad Left
KEYCODE_DPAD_LEFT
21

Button A
KEYCODE_BUTTON_A
96
Button B
KEYCODE_BUTTON_B
97
Button X
KEYCODE_BUTTON_X
99
Button Y
KEYCODE_BUTTON_Y
100

L1
KEYCODE_BUTTON_L1
102
L2
KEYCODE_BUTTON_L2
104
R1
KEYCODE_BUTTON_R1
103
R2
KEYCODE_BUTTON_R2
105

Start
KEYCODE_BUTTON_START
108
Select
KEYCODE_BUTTON_SELECT
109

Left Analog
AXIS_X
AXIS_Y
AXIS_Z
AXIS_RZ

Right Analog
AXIS_X
AXIS_Y
AXIS_Z
AXIS_RZ
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: blenderbros666 on February 24, 2014, 08:23:36 AM
Hello guys i love this idea but i do think you should also add Game mid tablets,tuvva power play. they are sorta the same as the jxd but differnt lay out ....i know not many people own the game mid tablets but Boy are they fast and they are good for emulaiton...so i request the Game mid tablet to be added to the list ,..i dont know how to add much about this tablet other than they have a web site if you need to know about it..its called the game mid. now i own the tuvva verison but the orignal make is game mid. thanks :)
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: littleguy on February 24, 2014, 08:53:54 AM
Thanks blenderbros666.  Just to be clear, you will always be able to map your buttons however you like, even if the device isn't discussed here.  I'm sure your devices will work fine.

The purpose of this thread is to get the button maps for the most popular devices.  Just to save a step for those users right after they install the app.  Just a convenience thing.
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: Dr_Bunsen on May 30, 2014, 10:55:23 AM
I didn't see the GPD-G5A in your list but I hope that you would consider including it.  I'm using Skelton's kitkat LegacyROM 1.1 which has Tincore built in since the factory ROM had problems with the controller drivers (amongst other things).  Anyway here is the info for my unit:

Dpad up: KEYCODE_DPAD_UP: 19
Dpad Down: KEYCODE_DPAD_DOWN: 20
Dpad Right: KEYCODE_DPAD_RIGHT: 22
Dpad Left: KEYCODE_DPAD_RIGHT: 21
Left analog Up: AXIS_Y: -x.xx
Left analog Down: AXIS_Y: +x.xx
Left analog right: AXIS_X: +x.xx
Left analog left: AXIS_X: -x.xx
Left analog press down: KEYCODE_BUTTON_THUMBR: 106
Right analog up: AXIS_RZ: -x.xx
Right analog down: AXIS_RZ: +x.xx
Right analog right: AXIS_Z: +x.xx
Right analog left: AXIS_Z: -x.xx
Right analog press down: KEYCODE_BUTTON_THUMBR: 107
Start: KEYCODE_BUTTON_START: 108
Select: KEYCODE_BUTTON_SELECT: 109
A: KEYCODE_BUTTON_A: 96
B: KEYCODE_BUTTON_B: 97
X: KEYCODE_BUTTON_X: 99
Y: KEYCODE_BUTTON_Y: 100
Right Trigger (R2): KEYCODE_BUTTON_R2: 105
Left Trigger (L2): KEYCODE_BUTTON_L2: 104
Right bumper (R1): KEYCODE_BUTTON_R1: 103
Left bumper (L1): KEYCODE_BUTTON_L1: 102
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: vamman on April 16, 2015, 10:22:28 PM
Currently doing some asm work on the shield console. I am interested in resurfacing an android tv build of this project. If you need data on the Shield Console I am happy to share what I can within the bounds of the MNDA. The emu is running but its glitchy. I hear the builder is missing from this project? ;)
Title: Re: Calling all Shield, JXD 7300/7800, Archos Gamepad, and GameStick owners
Post by: av777 on April 04, 2016, 01:07:30 AM
The most laudable emulator is undistinguished from the Genesis Model. I know I have to deal with computer chips. Garner more Support. Where can the console be ordered? Keep in mind the interface response times need to be low latency.