MousePressedEvent constructor

MousePressedEvent({
  1. required MouseButton button,
  2. required Vector3 mousePos,
})

Implementation

MousePressedEvent({required this.button, required Vector3 mousePos})
    : super(
          type: EventType.mousePressedEvent,
          name: 'MousePressedEvent',
          mousePos: mousePos);