示例#1
0
        public GamepadComponent_Button(GamepadButtonId i, InputAtomLockType l = InputAtomLockType.Zeroed) : base(i, l)
        {
            is_down     = false;
            is_pressed  = false;
            is_released = false;

            frozen_is_down = false;

            presses = new GamepadEventLog <bool>(32);
        }
示例#2
0
        public GamepadComponent_Stick(GamepadStickId i, InputAtomLockType l) : base(i, l)
        {
            value            = VectorF2.ZERO;
            magnitude        = 0.0f;
            angle_in_degrees = 0.0f;

            frozen_value            = VectorF2.ZERO;
            frozen_magnitude        = 0.0f;
            frozen_angle_in_degrees = 0.0f;

            stick_zones = new GamepadEventLog <GamepadStickZone>(64);
        }