Garry's Mod Wiki

Revision Difference

system.HasFocus#527603

<function name="HasFocus" parent="system" type="libraryfunc"> <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.</note> <bug issue="2424">This will return true when minimized in windowed-mode.</bug> </description> <realm>Shared and Menu</realm> <rets> <ret name="" type="boolean">Whether or not the game window has focus.</ret> </rets> </function>