[NOVICE] FlxG.gamepads Doesn't Work With Flash

71 views
Skip to first unread message

Artur Aguiar

unread,
Mar 26, 2014, 12:51:43 PM3/26/14
to haxef...@googlegroups.com

Hello! I am new to this forum, and also new to HaxeFlixel, so I apologize if this question doesn't really make much sense.

I'm trying to use a gamepad in my fighting game prototype and I'm having problems getting the FlxGamepadManager using FlxG.gamepads.
I have flixel 3.2.2 installed, but when I try to generate an swf I get the following error: flixel.Class<FlxG> has no field gamepads.
It works with neko though.

Funny thing is that FlashDevelop even autocompletes the FlxG.gamepads and gives me its class and description. Also the GamepadTest demo has it working with this call and in an swf. But I can't find the gamepads variable reference in the official API for FlxG on this website.

Anybody got an idea of how to fix this?


Thanks!

Gama11

unread,
Mar 26, 2014, 2:48:46 PM3/26/14
to haxef...@googlegroups.com
Gamepad support for flash has only been implemented recently (version 3.3.0 / the dev branch). It is not yet available in a public relase.

Artur Aguiar

unread,
Mar 26, 2014, 4:20:24 PM3/26/14
to haxef...@googlegroups.com
Oh! Okay. Sorry about that. I saw your commit on the gitHub repo saying that you had added support for flash gampads and since I had the latest release, I assumed I had the support. My bad.

Is development using the bleeding edge dev branch recommended?


Thank you!

Artur Aguiar

unread,
Mar 26, 2014, 4:27:18 PM3/26/14
to

Okay, I found the page that talks about it on the documentation. Thanks!

Reply all
Reply to author
Forward
0 new messages