making HUD analog joystick that lines up with gamepad

Get help using Construct 2

Post » Tue Jul 29, 2014 5:16 pm

Behold! It is done.. http://part12studios.com/games/OuyaController/

(Remember if you're using chrome, the ouya controller only likes to connect once.. each time you have to close the browser and reopen it when testing things out)

the big thing was realizing that for any axis stuff i needed to use the Gamepad.RawAxis(0,0) stuff for both analog triggers and thumb sticks to insure there was no overlap..

the rawaxis mapping is:

left thumb x - (0,0)
left thumb y - (0,1)
left trigger - (0,2)
right thumb x - (0,2)
right thumb y - (0,3)
right trigger - (0,4)

Thanks everyone, especially @littlestain for your help with this. I learned a lot through this exercise.

I'm working next on getting an IAP solution for the Ouya. I'll let folks know how that goes once it's there.

in the meantime attached is an ouya controller capx.

@grimbarian we're all set.. we have access to every button on the ouya now.. analog or otherwise.

Thanks
Caleb
You do not have the required permissions to view the files attached to this post.
Last edited by part12studios on Wed Jul 30, 2014 11:44 am, edited 1 time in total.
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Post » Wed Jul 30, 2014 9:23 am

You're a star Caleb - I'll be checking this out tonight as soon as possible, thanks for going through this - and sharing your work and outcomes.

Saw you on the OUYA dev hangout the other night too. ;-)

Thanks again @part12studios
B
17
S
2
Posts: 46
Reputation: 1,105

Post » Wed Jul 30, 2014 12:13 pm

@grimbarian it was my pleasure and i'm just glad to see it becoming a real possibility. I didn't get anywhere with IAP yesterday, but that has a lot to do with not connecting with Tim over at Ouya to talk about real options.

Right now though I'm looking at the standard IAP system n C2.. and I don't get how it works. There are no tutorials on how to use it for all the markets it claims it supports. I'm going to dig some more today to figure out.
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Post » Thu Jul 31, 2014 11:33 am

but wait there's more... ugh.. so I did some testing of my app using the new found mapping that works for PC and it seems that these mappings themselves are still inconsistent with what the Ouya actually responds too.. having this app of course was helpful because it let me test everything.. but yea there is some pretty whacked out stuff.. so I'm going to have to work on this some more to figure out the mapping specifically as it pertains to the Ouya itself..

pretty annoying because it means you basically can't do any debugging on a pc and have that version go straight to the Ouya...

so in the short term all I've managed to do is show someone how to map to an ouya controller for pc.. which isn't all that useful. i guess in a perfect world, someone could do all their dev on a pc and use this.. and then once it's fully worked out.. modify the inputs accordingly to reflect the game..

however I'm concerned with a few things I'm seeing so far.. the biggest one being that the mouse touchpad seems to overlap with the left analog x and y.. none of the four dpad buttons even registered (though left and right were fired off by the left and right analog joystick buttons.

So yea I'll see what I can figure out.. but this is a debugging nightmare.. because now i'd have to make new builds through cocoonjs.. which take around 5-10min to compile and get them on the device to then test, etc..

UPDATE: I never installed the android SDK on this machine so there is a chance that maybe I was using some kind of default windows driver might be part of the problem.. i know at one point (i'm on windows 8.1 now) that with Windows 8 the touchpad worked. now it doesn't. So that might reveal something
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Post » Thu Jul 31, 2014 8:28 pm

part12studios wrote:however I'm concerned with a few things I'm seeing so far.. the biggest one being that the mouse touchpad seems to overlap with the left analog x and y.. none of the four dpad buttons even registered (though left and right were fired off by the left and right analog joystick buttons.

UPDATE: I never installed the android SDK on this machine so there is a chance that maybe I was using some kind of default windows driver might be part of the problem.. i know at one point (i'm on windows 8.1 now) that with Windows 8 the touchpad worked. now it doesn't. So that might reveal something


I haven't been able to test yours yet as my Construct 2 comes through Steam - so I only have the latest stable build, not the most recent beta version.

However in my OUYA game I had the DPad left and right buttons being detected as buttons themselves - so it was definitely registering them correctly for me. Seems like you may have something amiss there.
B
17
S
2
Posts: 46
Reputation: 1,105

Post » Fri Aug 01, 2014 4:43 am

yea i'll look closer at what's going on.. maybe accessing the raw axis is a problem.. still some stuff to investigate..

also even with my updated (but not released) version of Bee Active, the buttons were behaving right.. so yea i'm just going to have to dig deeper on this.
B
56
S
9
G
1
Posts: 938
Reputation: 6,458

Previous

Return to How do I....?

Who is online

Users browsing this forum: Darth Crusher, NN81, plinkie, TsubaRu and 10 guests