close
The Wayback Machine - https://web.archive.org/web/20200707174941/https://github.com/topics/flixel
Skip to content
#

flixel

Here are 24 public repositories matching this topic...

JoeCreates
JoeCreates commented Jun 27, 2019

Call FlxG.gamepads.firstActive.firstJustPressedID() with an xbox controller plugged in. It will always return GUIDE when nothing is pressed.

The reason is simply that the the raw ID for the guide button on xbox controllers is -1, which is also the id flixel uses for NONE. We hit https://github.com/HaxeFlixel/flixel/blob/master/flixel/input/gamepad/mappings/XInputMapping.hx#L34 when doing getID(

Improve this page

Add a description, image, and links to the flixel topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the flixel topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.