Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

X2Input

Globals

X2Input

X2Input

Classes

Class: X2Input

Method: GetMousePos

(method) X2Input:GetMousePos()
  -> mouseX: number
  2. mouseY: number

Retrieves the current mouse position.

@return mouseX — The current mouse x position.

@return mouseY — The current mouse y position.

Method: IsControlKeyDown

(method) X2Input:IsControlKeyDown()
  -> controlKeyDown: boolean

Checks if the Control key is currently pressed.

@return controlKeyDown — true if Control is down, false otherwise.

Method: IsAltKeyDown

(method) X2Input:IsAltKeyDown()
  -> altKeyDown: boolean

Checks if the Alt key is currently pressed.

@return altKeyDown — true if Alt is down, false otherwise.

Method: IsShiftKeyDown

(method) X2Input:IsShiftKeyDown()
  -> shiftKeyDown: boolean

Checks if the Shift key is currently pressed.

@return shiftKeyDown — true if Shift is down, false otherwise.