![]() |
RGFW
A multi-platform single-header very simple-to-use framework library for creating GUI Libraries or simple GUI programs.
|
Functions | |
RGFWDEF RGFW_bool | RGFW_isPressed (RGFW_window *win, RGFW_key key) |
RGFWDEF RGFW_bool | RGFW_wasPressed (RGFW_window *win, RGFW_key key) |
RGFWDEF RGFW_bool | RGFW_isHeld (RGFW_window *win, RGFW_key key) |
RGFWDEF RGFW_bool | RGFW_isReleased (RGFW_window *win, RGFW_key key) |
RGFWDEF RGFW_bool | RGFW_isClicked (RGFW_window *win, RGFW_key key) |
RGFWDEF RGFW_bool | RGFW_isMousePressed (RGFW_window *win, RGFW_mouseButton button) |
RGFWDEF RGFW_bool | RGFW_isMouseHeld (RGFW_window *win, RGFW_mouseButton button) |
RGFWDEF RGFW_bool | RGFW_isMouseReleased (RGFW_window *win, RGFW_mouseButton button) |
RGFWDEF RGFW_bool | RGFW_wasMousePressed (RGFW_window *win, RGFW_mouseButton button) |
RGFWDEF RGFW_bool RGFW_isClicked | ( | RGFW_window * | win, |
RGFW_key | key | ||
) |
key | key code |
RGFWDEF RGFW_bool RGFW_isHeld | ( | RGFW_window * | win, |
RGFW_key | key | ||
) |
if key is held (key code)
RGFWDEF RGFW_bool RGFW_isMouseHeld | ( | RGFW_window * | win, |
RGFW_mouseButton | button | ||
) |
if a mouse button is held
button | mouse button code |
RGFWDEF RGFW_bool RGFW_isMousePressed | ( | RGFW_window * | win, |
RGFW_mouseButton | button | ||
) |
if a mouse button is pressed
button | mouse button code |
RGFWDEF RGFW_bool RGFW_isMouseReleased | ( | RGFW_window * | win, |
RGFW_mouseButton | button | ||
) |
if a mouse button was released
button | mouse button code |
RGFWDEF RGFW_bool RGFW_isPressed | ( | RGFW_window * | win, |
RGFW_key | key | ||
) |
if window == NULL, it checks if the key is pressed globally. Otherwise, it checks only if the key is pressed while the window in focus. if key is pressed (key code)
RGFWDEF RGFW_bool RGFW_isReleased | ( | RGFW_window * | win, |
RGFW_key | key | ||
) |
if key is released (key code)
RGFWDEF RGFW_bool RGFW_wasMousePressed | ( | RGFW_window * | win, |
RGFW_mouseButton | button | ||
) |
if a mouse button was pressed (checks previous state only)
button | mouse button code |
RGFWDEF RGFW_bool RGFW_wasPressed | ( | RGFW_window * | win, |
RGFW_key | key | ||
) |
if key was pressed (checks previous state only) (key code)