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

Input-related functions: keyboard. More...

Functions

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

Detailed Description

Input-related functions: keyboard.

Function Documentation

◆ GetCharPressed()

static int raylib::Keyboard::GetCharPressed ( )
inlinestatic

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

Definition at line 58 of file Keyboard.hpp.

◆ GetKeyPressed()

static int raylib::Keyboard::GetKeyPressed ( )
inlinestatic

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

Definition at line 51 of file Keyboard.hpp.

◆ IsKeyDown()

static bool raylib::Keyboard::IsKeyDown ( int  key)
inlinestatic

Detect if a key is being pressed.

Definition at line 29 of file Keyboard.hpp.

◆ IsKeyPressed()

static bool raylib::Keyboard::IsKeyPressed ( int  key)
inlinestatic

Detect if a key has been pressed once.

Definition at line 15 of file Keyboard.hpp.

◆ IsKeyPressedRepeat()

static bool raylib::Keyboard::IsKeyPressedRepeat ( int  key)
inlinestatic

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

Definition at line 22 of file Keyboard.hpp.

◆ IsKeyReleased()

static bool raylib::Keyboard::IsKeyReleased ( int  key)
inlinestatic

Detect if a key has been released once.

Definition at line 36 of file Keyboard.hpp.

◆ IsKeyUp()

static bool raylib::Keyboard::IsKeyUp ( int  key)
inlinestatic

Detect if a key is NOT being pressed.

Definition at line 43 of file Keyboard.hpp.