ChaiLove API  0.28.0
Public Member Functions
love::console Class Reference

In-game console for ChaiLove. More...

Public Member Functions

bool isEnabled ()
 Checks to see if the console is enabled. More...
 
bool setEnabled (bool enabled)
 Enable or disable the console. More...
 
bool isShown ()
 Checks whether or not the console is being displayed.
 

Detailed Description

In-game console for ChaiLove.

To enable the console, you must trigger: love.console.setEnabled(true) or toggle the console in love.conf.

Once enabled, display the console by pressing the tilde key on your keyboard. Running commands will execute ChaiScript. For example, try running love.system.getOS().

See also
love.config

Member Function Documentation

◆ isEnabled()

bool love::console::isEnabled ( )

Checks to see if the console is enabled.

See also
setEnabled

◆ setEnabled()

bool love::console::setEnabled ( bool  enabled)

Enable or disable the console.

See also
isEnabled