Garry's Mod Wiki

system.HasFocus

system.HasFocus

boolean system.HasFocus()

Description

Returns whether or not the game window has focus.

This function does not work on dedicated servers and will instead return no value.
This will return true when minimized in windowed-mode.

Issue Tracker: 2424

Returns

1 boolean
Whether or not the game window has focus.

Special Pages


Wikis

?

Render Time: 61ms

DB GetPage 45
Generate Html 1
SaveChanges (1) 6
Render Body 0
Render Sidebar 6