cpp-sdl2
C++ header-only SDL2 wrapper
sdl::Mouse Namespace Reference

Classes

class  Cursor
 Cursor object. More...
 

Functions

void set_relative (bool enabled)
 Namespace containing everything that has to do with mouse management Set the mose in relative mode. More...
 
bool get_relative ()
 Get if the mouse is in relative mode. More...
 
void warp_in_window (Window const &window, Vec2i const &position)
 Wrap inside the given windows. More...
 
void warp_global (Vec2i const &position)
 Wrap at this global and absolute position. More...
 

Function Documentation

◆ get_relative()

bool sdl::Mouse::get_relative ( )
inline

Get if the mouse is in relative mode.

Definition at line 19 of file mouse.hpp.

◆ set_relative()

void sdl::Mouse::set_relative ( bool  enabled)
inline

Namespace containing everything that has to do with mouse management Set the mose in relative mode.

Definition at line 12 of file mouse.hpp.

◆ warp_global()

void sdl::Mouse::warp_global ( Vec2i const &  position)
inline

Wrap at this global and absolute position.

Definition at line 31 of file mouse.hpp.

◆ warp_in_window()

void sdl::Mouse::warp_in_window ( Window const &  window,
Vec2i const &  position 
)
inline

Wrap inside the given windows.

Definition at line 25 of file mouse.hpp.

References sdl::Window::ptr().