system.HasFocus

From Garry's Mod
Jump to: navigation, search
 system.HasFocus( )

Description

Returns whether or not the game window has focus.

Returns true 100% of the time on OS X.

NOTE

This function does not work on dedicated servers and will instead return no value.

BUG

This will return true when minimized in windowed-mode.

Issue Tracker: #2424

Returns

boolean

Whether or not the game window has focus.
Personal tools
Navigation