Pixel-Composer/scripts/mouse_input/mouse_input.gml

11 lines
290 B
Plaintext
Raw Normal View History

2022-12-10 05:06:01 +01:00
function mouse_click(mouse, focus = true) {
return focus && mouse_check_button(mouse);
}
function mouse_press(mouse, focus = true) {
return focus && mouse_check_button_pressed(mouse);
}
function mouse_release(mouse, focus = true) {
return focus && mouse_check_button_released(mouse);
}