1#ifndef RAYLIB_CPP_INCLUDE_KEYBOARD_HPP_
2#define RAYLIB_CPP_INCLUDE_KEYBOARD_HPP_
4#include "./Functions.hpp"
16 return ::IsKeyPressed(key);
23 return ::IsKeyPressedRepeat(key);
29[[maybe_unused]] RLCPPAPI
inline bool IsKeyDown(
int key) {
30 return ::IsKeyDown(key);
37 return ::IsKeyReleased(key);
43[[maybe_unused]] RLCPPAPI
inline bool IsKeyUp(
int key) {
44 return ::IsKeyUp(key);
52 return ::GetKeyPressed();
59 return ::GetCharPressed();
Input-related functions: keyboard.
static bool IsKeyReleased(int key)
Detect if a key has been released once.
static int GetCharPressed()
Get char pressed (unicode), call it multiple times for chars queued, returns 0 when the queue is empt...
static bool IsKeyPressed(int key)
Detect if a key has been pressed once.
static bool IsKeyPressedRepeat(int key)
Detect if a key has been pressed again (Only PLATFORM_DESKTOP)
static int GetKeyPressed()
Get key pressed (keycode), call it multiple times for keys queued, returns 0 when the queue is empty.
static bool IsKeyDown(int key)
Detect if a key is being pressed.
static bool IsKeyUp(int key)
Detect if a key is NOT being pressed.
All raylib-cpp classes and functions appear in the raylib namespace.