Skip to content
anthony.samms edited this page May 28, 2026 · 1 revision

This page documents the input system. The input system is also detached from raylib to allow inputs to be handled on a separate thread.

void input_polling_thread();

This thread is initialized and runs the function below every 500 microseconds:

void poll_keyboard_once();

polls all keyboard and controller inputs. On Windows, this uses the GetKeyAsyncState() function; on Unix this directly checks the pressed key code.

void clear_input_buffers();

Clears any inputs that need to be processed.

bool is_l_don_pressed(PlayerNum player_num = PlayerNum::ALL);
bool is_r_don_pressed(PlayerNum player_num = PlayerNum::ALL);
bool is_l_kat_pressed(PlayerNum player_num = PlayerNum::ALL);
bool is_r_kat_pressed(PlayerNum player_num = PlayerNum::ALL);

Checks if a specific side of the drum is pressed, for a given player.

Clone this wiki locally