phoenix::Mouse

Provides asynchronous access to the mouse.

struct Mouse {
  enum class Button : unsigned { Left, Middle, Right };
  static Position position();
  static bool pressed(Mouse::Button button);
  static bool released(Mouse::Button button);
};

static Position Mouse::position();

Returns the current position of the mouse cursor.

static bool Mouse::pressed(Mouse::Button button);

Returns true if the given button is currently being presed.

static bool Mouse::released(Mouse::Button button);

Returns true if the given button is not currently being presed.