Garry's Mod Wiki

GM:AdjustMouseSensitivity

number GM:AdjustMouseSensitivity( number defaultSensitivity )

Description

Allows you to adjust the mouse sensitivity.

Arguments

1 number defaultSensitivity
The old sensitivity

In general it will be 0, which is equivalent to a sensitivity of 1.

Returns

1 number
A fraction of the normal sensitivity (0.5 would be half as sensitive).

Return -1 to not override and prevent subsequent hooks and WEAPON:AdjustMouseSensitivity from running.
Return nil to not override and allow subsequent hooks and WEAPON:AdjustMouseSensitivity to run.

Page Links


Special Pages


Wikis

?

Render Time: 37ms

DB GetPage 3
Generate Html 7
SaveChanges (1) 12
Render Body 0
Render Sidebar 12