MouseState.this - multiple declarations

Function MouseState.this

Constructs a dsdl2.MouseState by providing the flags

ref this (
  uint base,
  bool left = false,
  bool middle = false,
  bool right = false,
  bool x1 = false,
  bool x2 = false
) @safe;

Parameters

NameDescription
base base flag to assign (0 for none)
left whether the left mouse button is pressed
middle whether the middle mouse button is pressed
whether the right mouse button is pressed
x1 whether the X1 mouse button is pressed
x2 whether the X2 mouse button is pressed

Function MouseState.this

Constructs a dsdl2.MouseState from a vanilla SDL mouse state flag

ref this (
  uint sdlMouseState
) @safe;

Parameters

NameDescription
sdlMouseState the uint flag