Garry's Mod Wiki

system.HasFocus

boolean system.HasFocus()

Description

Returns whether or not the game window has focus.

Returns true 100% of the time on OS X.

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

Returns

1 boolean
Whether or not the game window has focus.

Page Links


Special Pages


Wikis

?

Render Time: 117ms

DB GetPage 19
Generate Html 1
SaveChanges 81
Render Body 0
Render Sidebar 13