BtnStateExtensions.Make
static BtnState Make(bool wasActive, bool isActive)
Creates a Button State using the current and previous frame’s state! These two states allow us to add the “JustActive” and “JustInactive” bitflags when changes happen.
| bool wasActive | Was it active previously? |
| bool isActive | And is it active currently? |
| RETURNS: BtnState | A bitflag with “Just” events added in! |
Found an issue with these docs, or have some additional questions? Create an Issue on Github!