import Game;

namespace Gamepad {

    class GamepadEvent : Game.Event {
        field device;
        field deviceId;
        field buttonId;
        field value;
        field x;
        field y;

        constructor(device, buttonId, value, x, y) : base(Game.EventType.GAMEPAD) {
            this.device = device;
            this.deviceId = device._id;
            this.buttonId = buttonId;
            this.value = value;
            this.x = x;
            this.y = y;
        }
    }
}
