public float fTimeHeld; // Note, this is _remembered_ after the element has been deactivated. It's only reset upon becoming active again. public cInputElement(eInputCommand _commandName) { mCommandName = _commandName; bActive = false; bHeld = false; bPressed = false; bTapped = false; fTimeHeld = 0.0f; }
public cInputContact(eInputCommand _commandName) : base(_commandName) { vPosition = Vector2.zero; vVelocity = Vector2.zero; }