#elseif mac
/**
* Button IDs (DPAD values are obtained from FlxGamepad.hat)
*/
public static inline var A:Int = 11;
public static inline var B:Int = 12;
public static inline var X:Int = 13;
public static inline var Y:Int = 14;
public static inline var LB:Int = 8;
public static inline var RB:Int = 9;
public static inline var BACK:Int = 5;
public static inline var START:Int = 4;
public static inline var LEFT_ANALOGUE:Int = 6;
public static inline var RIGHT_ANALOGUE:Int = 7;
/**
* Axis array indicies
*
* If TRIGGER axis returns value > 0 then LT is being pressed, and if it's < 0 then RT is being pressed
*/
public static inline var TRIGGER:Int = 4;
public static inline var LEFT_ANALOGUE_X:Int = 0;
public static inline var LEFT_ANALOGUE_Y:Int = 1;
public static inline var RIGHT_ANALOGUE_X:Int = 2;
public static inline var RIGHT_ANALOGUE_Y:Int = 3;
if (_gamepad.anyButton())
{
trace("We pressed " + _gamepad.firstPressedButtonID());
}
Player.hx:241: We pressed 0
Player.hx:241: We pressed 1
Player.hx:241: We pressed 2
Player.hx:241: We pressed 3
These numbers match the #else block of the XBoxButtonIDs.hx class perfectly:
public static inline var A:Int = 0;
public static inline var B:Int = 1;
public static inline var X:Int = 2;
public static inline var Y:Int = 3;I'm pretty new to the community, so I figured I'd post this thread. I could fork the repository and contribute the change myself if wanted.Thanks!
I figured that I'd preface this post by saying that I really love HaxeFlixel so far :D
I could fork the repository and contribute the change myself if wanted.