class

MouseInput

Module
Input
Header
#include "Input/MouseInput.h"
Namespace
Mowo

Constructors

SignatureNameDescription
MouseInput()MouseInput

Public functions

ReturnsNameDescription
boolIsButtonDown
boolIsButtonPressedSticky per-frame edges — a press+release between two Update() calls still reports both (see KeyboardInput).
boolIsButtonReleased
floatGetXPosition (float for high-DPI support)
floatGetY
voidGetPosition
floatGetDeltaXDelta (movement since last frame, float for sub-pixel precision)
floatGetDeltaY
voidGetDelta
floatGetScrollDeltaScroll (float for smooth scrolling)
floatGetHorizontalScrollDelta
voidOnButtonDownCalled by InputManager
voidOnButtonUp
voidOnMove
voidOnScroll
voidOnHorizontalScroll
voidSetDelta
voidUpdateCall at start of frame

Function details

MouseInput

C++
MouseInput()

IsButtonDown

C++
bool IsButtonDown(MouseButton button) const

IsButtonPressed

C++
bool IsButtonPressed(MouseButton button) const

Sticky per-frame edges — a press+release between two Update() calls still reports both (see KeyboardInput).

IsButtonReleased

C++
bool IsButtonReleased(MouseButton button) const

GetX

C++
float GetX() const

Position (float for high-DPI support)

GetY

C++
float GetY() const

GetPosition

C++
void GetPosition(float& x, float& y) const

GetDeltaX

C++
float GetDeltaX() const

Delta (movement since last frame, float for sub-pixel precision)

GetDeltaY

C++
float GetDeltaY() const

GetDelta

C++
void GetDelta(float& dx, float& dy) const

GetScrollDelta

C++
float GetScrollDelta() const

Scroll (float for smooth scrolling)

GetHorizontalScrollDelta

C++
float GetHorizontalScrollDelta() const

OnButtonDown

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