Garry's Mod Wiki

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.

Page Links


Special Pages


Wikis

?

Render Time: 67ms

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