Garry's Mod Wiki

Garry's Mod Wiki

  number CUserCmd:GetMouseWheel()

Description

Returns the scroll delta as whole number.

Returns

1 number
Scroll delta

Example

hook.Add( "StartCommand", "StartCommandExample", function( ply, cmd ) if ( cmd:GetMouseWheel() != 0 ) then print( ply, " scrolled ", cmd:GetMouseWheel()) end end )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...