Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Controller Support?

Author
Message
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Oct 2018 07:14
Hi all, I have a project I'd like to make use of AppGameKit for, but I need to know if it'll work first... A required part of the project would be to link a controller to an android device. I know many of these controllers exist out there, some work via bluetooth, others via microUSB - either will work for my uses. But can I read in the input from that controller into AppGameKit easily enough?

I've read on here people using microsoft controllers with their PC using AppGameKit, but I'm specifically looking to connect a controller to an android device. Possible, you reckon?
Help out a fellow dev! Download and rate my games! They're free!

Wizzed Off! - (Android) (iOS)
God of Thunder - (Android) (iOS)
Extreme Lawn Mowing - (Android) (iOS)
Drunken Heroes - (Android) (iOS)

And you can get Fluffy Knuckleduster merchandise at our new store!
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Oct 2018 08:54
Thanks blink0k, yeah I saw that but without mention of buttons I wondered if it was actually something I could make use of... What I need is more buttons.
Help out a fellow dev! Download and rate my games! They're free!

Wizzed Off! - (Android) (iOS)
God of Thunder - (Android) (iOS)
Extreme Lawn Mowing - (Android) (iOS)
Drunken Heroes - (Android) (iOS)

And you can get Fluffy Knuckleduster merchandise at our new store!
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 16th Oct 2018 15:57
I tested an XBox 360 controller with Android and it worked ok. Anything that reports input events through the Android OS in the normal way should work.
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 17th Oct 2018 03:10
Thanks Paul. I'll do some experimentation and see what I can see.
Help out a fellow dev! Download and rate my games! They're free!

Wizzed Off! - (Android) (iOS)
God of Thunder - (Android) (iOS)
Extreme Lawn Mowing - (Android) (iOS)
Drunken Heroes - (Android) (iOS)

And you can get Fluffy Knuckleduster merchandise at our new store!
CumQuaT
AGK Master
13
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 17th Oct 2018 03:36
It works! Using GetRawJoystickButtonState() I can tap most of the buttons. Just not the select button for some reason... Doesn't seem to sit within the 1-32 range. But no matter!
Help out a fellow dev! Download and rate my games! They're free!

Wizzed Off! - (Android) (iOS)
God of Thunder - (Android) (iOS)
Extreme Lawn Mowing - (Android) (iOS)
Drunken Heroes - (Android) (iOS)

And you can get Fluffy Knuckleduster merchandise at our new store!

Login to post a reply

Server time is: 2024-04-19 21:36:47
Your offset time is: 2024-04-19 21:36:47