implement our own gui module, drop microui
This commit is contained in:
parent
2555bec8eb
commit
8baf5f06ea
25 changed files with 495 additions and 507 deletions
|
|
@ -170,6 +170,16 @@ i32 pxl8_mouse_wheel_y(const pxl8_input_state* input) {
|
|||
return input->mouse_wheel_y;
|
||||
}
|
||||
|
||||
bool pxl8_mouse_pressed(const pxl8_input_state* input, i32 button) {
|
||||
if (!input || button < 1 || button > 3) return false;
|
||||
return input->mouse_buttons_pressed[button - 1];
|
||||
}
|
||||
|
||||
bool pxl8_mouse_released(const pxl8_input_state* input, i32 button) {
|
||||
if (!input || button < 1 || button > 3) return false;
|
||||
return input->mouse_buttons_released[button - 1];
|
||||
}
|
||||
|
||||
i32 pxl8_mouse_x(const pxl8_input_state* input) {
|
||||
if (!input) return 0;
|
||||
return input->mouse_x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue