using System;

namespace Icarus.Input.ButtonEvents {

    /// <summary>
    /// Stores event information for when a button is pressed on a joystick.
    /// </summary>
	public class JoystickButtonPressEvent : ButtonPressEvent {

        /// <summary>
        /// Creates a new JoystickButtonPressEvent.
        /// </summary>
        /// <param name="name">Name of the joystick button that was pressed.</param>
        /// <param name="pressed">Whether or not this button was just pressed.</param>
        /// <param name="down">Whether or not this button is being held down.</param>
        /// <param name="released">Whether or not this button was just released.</param>
		public JoystickButtonPressEvent(string name, bool pressed, bool down, bool released) {
            this.Name = name;
            this.Pressed = pressed;
            this.Down = down;
            this.Released = released;    
        }

	}
}
