class
MouseInput
- Module
- Input
- Header
#include "Input/MouseInput.h"- Namespace
Mowo
Constructors
| Signature | Name | Description |
|---|---|---|
MouseInput() | MouseInput |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsButtonDown | |
bool | IsButtonPressed | Sticky per-frame edges — a press+release between two Update() calls still reports both (see KeyboardInput). |
bool | IsButtonReleased | |
float | GetX | Position (float for high-DPI support) |
float | GetY | |
void | GetPosition | |
float | GetDeltaX | Delta (movement since last frame, float for sub-pixel precision) |
float | GetDeltaY | |
void | GetDelta | |
float | GetScrollDelta | Scroll (float for smooth scrolling) |
float | GetHorizontalScrollDelta | |
void | OnButtonDown | Called by InputManager |
void | OnButtonUp | |
void | OnMove | |
void | OnScroll | |
void | OnHorizontalScroll | |
void | SetDelta | |
void | Update | Call at start of frame |
Function details
MouseInput
C++
MouseInput()IsButtonDown
C++
bool IsButtonDown(MouseButton button) constIsButtonPressed
C++
bool IsButtonPressed(MouseButton button) constSticky per-frame edges — a press+release between two Update() calls still reports both (see KeyboardInput).
IsButtonReleased
C++
bool IsButtonReleased(MouseButton button) constGetX
C++
float GetX() constPosition (float for high-DPI support)
GetY
C++
float GetY() constGetPosition
C++
void GetPosition(float& x, float& y) constGetDeltaX
C++
float GetDeltaX() constDelta (movement since last frame, float for sub-pixel precision)
GetDeltaY
C++
float GetDeltaY() constGetDelta
C++
void GetDelta(float& dx, float& dy) constGetScrollDelta
C++
float GetScrollDelta() constScroll (float for smooth scrolling)
GetHorizontalScrollDelta
C++
float GetHorizontalScrollDelta() constOnButtonDown
C++
void OnButtonDown(MouseButton button)Called by InputManager
OnButtonUp
C++
void OnButtonUp(MouseButton button)OnMove
C++
void OnMove(float x, float y)OnScroll
C++
void OnScroll(float delta)OnHorizontalScroll
C++
void OnHorizontalScroll(float delta)SetDelta
C++
void SetDelta(float dx, float dy)Update
C++
void Update()Call at start of frame
Generated from Input/MouseInput.h via input.json · Nov 2, 2026Version 1.0.0