Version 0.3.0
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.system.grabInput( grab )
When grabbing is on, the mouse is confined to the window, and as much keyboard input as possible is passed directly to the current game. Some key combinations may still be interpreted by the window manager, such as Alt+Tab, Ctrl+Alt+Delete, etc.
Usage
love.system.grabInput( grab )
Arguments
grabTrue to grab, false to ungrab.
Returns
Nothing
Examples
Example 1: Grabbing input. function load()
   love.system.grabInput(true)
   -- Remeber to provide some way to exit for the user!
end