Skip to main content

The "vngen_is_log_button_selected" Function

Syntax#

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

Description#

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

Note that this script is different from vngen_get_log_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_log_button_selected("up")) {
effect_create_above(ef_ellipse, mouse_x, mouse_y, 2, c_white);
}