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—trueif Control is down,falseotherwise.
Method: IsAltKeyDown
(method) X2Input:IsAltKeyDown()
-> altKeyDown: boolean
Checks if the Alt key is currently pressed.
@return
altKeyDown—trueif Alt is down,falseotherwise.
Method: IsShiftKeyDown
(method) X2Input:IsShiftKeyDown()
-> shiftKeyDown: boolean
Checks if the Shift key is currently pressed.
@return
shiftKeyDown—trueif Shift is down,falseotherwise.