示例#1
0
        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;
        }
示例#2
0
 public cInputContact(eInputCommand _commandName)
     : base(_commandName)
 {
     vPosition = Vector2.zero;
     vVelocity = Vector2.zero;
 }