inputs_mouse_parameters
Mouse state (inputs.mouse) with the cursor position, the buttons, the scroll and the GUI flag.
Fields and methods
Members of the struct inputs_mouse_parameters. Most of what you do with a CGP type goes through the free functions listed below.
Fields
inputs_mouse_cursor_position_parameters position | Cursor position in relative window coordinates in [-1,1], with position.current and position.previous (the value before the last move). |
inputs_mouse_cursor_click_parameters click | Mouse button state: click.left and click.right are true while the button is held, click.last_action is the last button change. |
float scroll = 0 | Scroll offset received during the current frame, reset to 0 after each frame. |
bool on_gui = false | True when the cursor is over the ImGui window; the scene mouse callbacks are then not called. |
Functions taking a inputs_mouse_parameters
None.
Functions returning a inputs_mouse_parameters
None.
Operators
None.