# Enable/Disable Mouse Cursor Auto Hide

GrammarenableDisable mouse cursor auto hide for players, using a delay second delay for hiding
FlagsNative | Action

Auto hide causes the mouse cursor to automatically be hidden if the user hasn’t moved the cursor for a period of time. The cursor will also automatically be shown whenever the cursor is moved.

# Arguments

Returns — void

native void UISetCursorAutoHide(
	playergroup players,
	bool autoHide,
	fixed delay,
);

Category: UI / Game UI

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3273
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L3307
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L3446
UISetCursorAutoHide(PlayerGroupAll(), false, gv_c_MouseHideWait)
// L3563
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L4096
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L8370
UISetCursorAutoHide(PlayerGroupAll(), true, 5.0)
// L8411
UISetCursorAutoHide(PlayerGroupAll(), true, 5.0)
// L8436
UISetCursorAutoHide(PlayerGroupAll(), false, 5.0)
// L3273
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L3307
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L3446
UISetCursorAutoHide(PlayerGroupAll(), false, gv_c_MouseHideWait)
// L3563
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L4096
UISetCursorAutoHide(PlayerGroupAll(), true, gv_c_MouseHideWait)
// L8370
UISetCursorAutoHide(PlayerGroupAll(), true, 5.0)
// L8411
UISetCursorAutoHide(PlayerGroupAll(), true, 5.0)
// L8436
UISetCursorAutoHide(PlayerGroupAll(), false, 5.0)