Skip to content

Class LemonUI::Controls

ClassList > LemonUI > Controls

Tools for dealing with controls.

Public Static Properties

Type Name
property bool IsUsingController
Gets if the player used a controller for the last input.

Public Static Functions

Type Name
void DisableAll (int inputGroup=0)
Disables all of the controls during the next frame.
void DisableThisFrame (Control control)
Disables a control during the next frame.
void EnableThisFrame (Control control)
Enables a control during the next frame.
void EnableThisFrame (IEnumerable< Control > controls)
Enables a specific set of controls during the next frame.
bool IsJustPressed (Control control)
Checks if a control was pressed during the last frame.
bool IsPressed (Control control)
Checks if a control is currently pressed.

Public Static Properties Documentation

property IsUsingController

bool LemonUI.Controls.IsUsingController;

Public Static Functions Documentation

function DisableAll

static inline void LemonUI::Controls::DisableAll (
    int inputGroup=0
) 

function DisableThisFrame

Disables a control during the next frame.

static inline void LemonUI::Controls::DisableThisFrame (
    Control control
) 

Parameters:

  • control The control to disable.

function EnableThisFrame [1/2]

Enables a control during the next frame.

static inline void LemonUI::Controls::EnableThisFrame (
    Control control
) 

Parameters:

  • control The control to enable.

function EnableThisFrame [2/2]

Enables a specific set of controls during the next frame.

static inline void LemonUI::Controls::EnableThisFrame (
    IEnumerable< Control > controls
) 

Parameters:

  • controls The controls to enable.

function IsJustPressed

Checks if a control was pressed during the last frame.

static inline bool LemonUI::Controls::IsJustPressed (
    Control control
) 

Parameters:

  • control The control to check.

Returns:

true if the control was pressed, false otherwise.

function IsPressed

Checks if a control is currently pressed.

static inline bool LemonUI::Controls::IsPressed (
    Control control
) 

Parameters:

  • control The control to check.

Returns:

true if the control is pressed, false otherwise.


The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Controls.cs