Skip to main content

The "vngen_is_button_selected" Function

Syntax#

vngen_is_button_selected(id);
ArgumentTypeDescription
idreal/stringThe log button ID to check

Description#

Checks whether or not the specified button is selected (either by mouse/touch or vngen_do_button_select) and returns true or false.

Note that this script is different from vngen_get_button in that it will return true while the button is held down, not just when it is released and activated.

Example#

if (vngen_is_button_selected("save")) {
effect_create_above(ef_ellipse, mouse_x, mouse_y, 2, c_white);
}