raylib-cpp
C++ object-oriented wrapper library for raylib.
Static Public Member Functions | List of all members
raylib::Mouse Class Reference

Input-related functions: mouse. More...

Static Public Member Functions

static int GetCursor ()
 
static Vector2 GetPosition ()
 
static Vector2 GetTouchPosition (int index)
 
static int GetTouchX ()
 
static int GetTouchY ()
 
static float GetWheelMove ()
 
static int GetX ()
 
static int GetY ()
 
static bool IsButtonDown (int button)
 Detect if a mouse button is being pressed. More...
 
static bool IsButtonPressed (int button)
 Detect if a mouse button has been pressed once. More...
 
static bool IsButtonReleased (int button)
 Detect if a mouse button has been released once. More...
 
static bool IsButtonUp (int button)
 
static void SetCursor (int cursor)
 
static void SetOffset (int offsetX, int offsetY)
 
static void SetPosition (int x, int y)
 
static void SetScale (float scaleX, float scaleY)
 
static void SetX (int x)
 
static void SetY (int y)
 

Detailed Description

Input-related functions: mouse.

Definition at line 36 of file Mouse.hpp.

Member Function Documentation

◆ GetCursor()

static int raylib::Mouse::GetCursor ( )
inlinestatic

Definition at line 99 of file Mouse.hpp.

◆ GetPosition()

static Vector2 raylib::Mouse::GetPosition ( )
inlinestatic

Definition at line 79 of file Mouse.hpp.

◆ GetTouchPosition()

static Vector2 raylib::Mouse::GetTouchPosition ( int  index)
inlinestatic

Definition at line 115 of file Mouse.hpp.

◆ GetTouchX()

static int raylib::Mouse::GetTouchX ( )
inlinestatic

Definition at line 107 of file Mouse.hpp.

◆ GetTouchY()

static int raylib::Mouse::GetTouchY ( )
inlinestatic

Definition at line 111 of file Mouse.hpp.

◆ GetWheelMove()

static float raylib::Mouse::GetWheelMove ( )
inlinestatic

Definition at line 95 of file Mouse.hpp.

◆ GetX()

static int raylib::Mouse::GetX ( )
inlinestatic

Definition at line 63 of file Mouse.hpp.

Referenced by SetY().

◆ GetY()

static int raylib::Mouse::GetY ( )
inlinestatic

Definition at line 67 of file Mouse.hpp.

Referenced by SetX().

◆ IsButtonDown()

static bool raylib::Mouse::IsButtonDown ( int  button)
inlinestatic

Detect if a mouse button is being pressed.

Definition at line 48 of file Mouse.hpp.

◆ IsButtonPressed()

static bool raylib::Mouse::IsButtonPressed ( int  button)
inlinestatic

Detect if a mouse button has been pressed once.

Definition at line 41 of file Mouse.hpp.

◆ IsButtonReleased()

static bool raylib::Mouse::IsButtonReleased ( int  button)
inlinestatic

Detect if a mouse button has been released once.

Definition at line 55 of file Mouse.hpp.

◆ IsButtonUp()

static bool raylib::Mouse::IsButtonUp ( int  button)
inlinestatic

Definition at line 59 of file Mouse.hpp.

◆ SetCursor()

static void raylib::Mouse::SetCursor ( int  cursor)
inlinestatic

Definition at line 103 of file Mouse.hpp.

◆ SetOffset()

static void raylib::Mouse::SetOffset ( int  offsetX,
int  offsetY 
)
inlinestatic

Definition at line 87 of file Mouse.hpp.

◆ SetPosition()

static void raylib::Mouse::SetPosition ( int  x,
int  y 
)
inlinestatic

Definition at line 83 of file Mouse.hpp.

◆ SetScale()

static void raylib::Mouse::SetScale ( float  scaleX,
float  scaleY 
)
inlinestatic

Definition at line 91 of file Mouse.hpp.

◆ SetX()

static void raylib::Mouse::SetX ( int  x)
inlinestatic

Definition at line 71 of file Mouse.hpp.

References GetY().

◆ SetY()

static void raylib::Mouse::SetY ( int  y)
inlinestatic

Definition at line 75 of file Mouse.hpp.

References GetX().