8#ifndef GALAXY_INPUT_MOUSE_HPP_
9#define GALAXY_INPUT_MOUSE_HPP_
11#include <glm/vec2.hpp>
12#include <SDL3/SDL_mouse.h>
54 void warp_mouse(const
float x, const
float y) const noexcept;
Physical mouse device and state management.
void set_cursor_system(const SDL_SystemCursor cursor) noexcept
Set cursor to a system cursor.
~Mouse() noexcept
Destructor.
void destroy_cursor() noexcept
Destroy any existing cursor.
void hide_cursor() const noexcept
Hide cursor.
void restore_cursor() noexcept
Set the cursor back to default.
void set_mouse_grab(const bool grabbed) const noexcept
Toggle mouse grab.
void show_cursor() const noexcept
Show cursor.
SDL_Cursor * m_cursor
Holds data for a custom cursor.
bool has_mouse() const noexcept
Check if there is a mouse connected.
void set_cursor_custom(const std::string &cursor, const glm::ivec2 &hotspot) noexcept
Set custom cursor texture.
void warp_mouse(const float x, const float y) const noexcept
Move the mouse cursor to the given position within the window.
Binds the mouse to the window.
RAII Window. Handles events, input & display.