lovr.focus
EditThe lovr.focus
callback is called whenever the application acquires or loses focus (for example, when opening or closing the Steam dashboard). The callback receives a single argument, focused, which is a boolean indicating whether or not the application is now focused. It may make sense to pause the game or reduce visual fidelity when the application loses focus.
function lovr.focus(focused)
-- your code here
end
Arguments
Name | Type | Description |
focused | boolean | Whether the program is now focused. |
Returns
Nothing