Difference between revisions of "love.system"

m (Functions: Removed new 12.0 functions from list)
m (Undo - Concept:Current is using CURRENTLOVE, which is updated (better than updating this page manually)
(Tag: Undo)
 
Line 3: Line 3:
  
 
== Functions ==
 
== Functions ==
{{#ask: [[Category:Functions]] [[parent::love.system]] [[PrettySince::!~12.0]]
+
{{#ask: [[Category:Functions]] [[parent::love.system]] [[Concept:Current]]
 
| headers=hide
 
| headers=hide
 
| format=template
 
| format=template

Latest revision as of 12:49, 26 May 2022

Available since LÖVE 0.9.0
This module is not supported in earlier versions.

Provides access to information about the user's system.

Functions

love.system.getClipboardText Gets text from the clipboard. Added since 0.9.0
love.system.getOS Gets the current operating system. Added since 0.9.0
love.system.getPowerInfo Gets information about the system's power supply. Added since 0.9.0
love.system.getProcessorCount Gets the amount of logical processors in the system. Added since 0.9.0
love.system.hasBackgroundMusic Gets whether another application on the system is playing music in the background. Added since 11.0
love.system.openURL Opens a URL with the user's web or file browser. Added since 0.9.1
love.system.setClipboardText Puts text in the clipboard. Added since 0.9.0
love.system.vibrate Causes the device to vibrate, if possible. Added since 0.10.0

Enums

PowerState The basic state of the system's power supply. Added since 0.9.0

See Also

Other Languages