Skip to main content

The "vngen_do_log_nav" Function

Syntax#

vngen_do_log_nav(amount);
ArgumentTypeDescription
amountintegerThe number of backlog entries to scroll

Description#

Scrolls the backlog by the specified amount, if visible.

The amount of log entries scrolled is arbitrary, where negative values scroll up and positive values scroll down. With this script it is possible to, for example, use the arrow keys to scroll one entry at a time and the Home/End keys to jump directly to the start or end of the log.

Intended to be used in keyboard, mouse, or gamepad input events.

Example#

vngen_do_log_nav(-1); //Up
vngen_do_log_nav(1); //Down