Skip to content

Struct Input::MouseState

ClassList > Input > MouseState

Mouse state snapshot. More...

  • #include <Input.h>

Public Attributes

Type Name
MouseButtons button = { MouseButtons::NONE }
Currently pressed button.
float mouse_x = { 0.0f }
Mouse X position in screen space.
float mouse_y = { 0.0f }
Mouse Y position in screen space.
float scroll_x = { 0.0f }
Horizontal scroll delta.
float scroll_y = { 0.0f }
Vertical scroll delta.

Detailed Description

Captures button press, position, and scroll delta.

Public Attributes Documentation

variable button

Currently pressed button.

MouseButtons Input::MouseState::button;


variable mouse_x

Mouse X position in screen space.

float Input::MouseState::mouse_x;


variable mouse_y

Mouse Y position in screen space.

float Input::MouseState::mouse_y;


variable scroll_x

Horizontal scroll delta.

float Input::MouseState::scroll_x;


variable scroll_y

Vertical scroll delta.

float Input::MouseState::scroll_y;



The documentation for this class was generated from the following file src/editor/Input.h