raylib-cpp
C++ object-oriented wrapper library for raylib.
Loading...
Searching...
No Matches
Functions
raylib::Keyboard Namespace Reference

Input-related functions: keyboard. More...

Functions

RLCPPAPI bool GetCharPressed ()
 Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty. More...
 
RLCPPAPI bool GetKeyPressed ()
 Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty. More...
 
RLCPPAPI bool IsKeyDown (int key)
 Detect if a key is being pressed. More...
 
RLCPPAPI bool IsKeyPressed (int key)
 Detect if a key has been pressed once. More...
 
RLCPPAPI bool IsKeyPressedRepeat (int key)
 Detect if a key has been pressed again (Only PLATFORM_DESKTOP) More...
 
RLCPPAPI bool IsKeyReleased (int key)
 Detect if a key has been released once. More...
 
RLCPPAPI bool IsKeyUp (int key)
 Detect if a key is NOT being pressed. More...
 

Detailed Description

Input-related functions: keyboard.

Function Documentation

◆ GetCharPressed()

RLCPPAPI bool raylib::Keyboard::GetCharPressed ( )
inline

Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empty.

Definition at line 56 of file Keyboard.hpp.

◆ GetKeyPressed()

RLCPPAPI bool raylib::Keyboard::GetKeyPressed ( )
inline

Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty.

Definition at line 49 of file Keyboard.hpp.

◆ IsKeyDown()

RLCPPAPI bool raylib::Keyboard::IsKeyDown ( int  key)
inline

Detect if a key is being pressed.

Definition at line 28 of file Keyboard.hpp.

◆ IsKeyPressed()

RLCPPAPI bool raylib::Keyboard::IsKeyPressed ( int  key)
inline

Detect if a key has been pressed once.

Definition at line 14 of file Keyboard.hpp.

◆ IsKeyPressedRepeat()

RLCPPAPI bool raylib::Keyboard::IsKeyPressedRepeat ( int  key)
inline

Detect if a key has been pressed again (Only PLATFORM_DESKTOP)

Definition at line 21 of file Keyboard.hpp.

◆ IsKeyReleased()

RLCPPAPI bool raylib::Keyboard::IsKeyReleased ( int  key)
inline

Detect if a key has been released once.

Definition at line 35 of file Keyboard.hpp.

◆ IsKeyUp()

RLCPPAPI bool raylib::Keyboard::IsKeyUp ( int  key)
inline

Detect if a key is NOT being pressed.

Definition at line 42 of file Keyboard.hpp.