# Mouse Wheel

Grammar — Player player moves mouse wheel.
FlagsNative | Event

Only register for this event when you absolutely need it, as it will generate network traffic from all players for every mouse wheel move they make. This event fires when a player moves the mouse wheel. Use “Mouse Wheel Spin” to get the amount the mouse wheel moved.

# Arguments

  • int — Player

Returns — void

native void TriggerAddEventMouseWheel(
	trigger t,
	int player,
);

Category: UI / Input

# Examples

mods/frontiers.sc2modbase.sc2data/Lib6CB3363F.galaxy:1517

void lib6CB3363F_gt_MouseWheelWeaponChange_Init () {
    lib6CB3363F_gt_MouseWheelWeaponChange = TriggerCreate("lib6CB3363F_gt_MouseWheelWeaponChange_Func");
    TriggerAddEventMouseWheel(lib6CB3363F_gt_MouseWheelWeaponChange, c_playerAny);
}