The Wayback Machine - https://web.archive.org/web/20200612102605/https://github.com/topics/haxelib
Skip to content
#

haxelib

Here are 74 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(

XANOZOID
XANOZOID commented Jan 6, 2020

Commit in question

#574 -> Updated Scene to return empty containers

Comment

I feel like it makes sense to use some form of memoization
If we're querying the existing entity types and someone attempts to get a qualifying Entity, then cache the result as empty
much like adding an entity of that type, but with no actual allocation other than the array

Ben Morris's suggestion:

Improve this page

Add a description, image, and links to the haxelib 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 haxelib topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.