-
Notifications
You must be signed in to change notification settings - Fork 116
Mobile Lua API
The button argument in all of these functions can be either
"first"
or"second"
ex usage:
if extraButtonJustPressed("first") then
-- logic
end
Checks if the extra button is pressed
Checks if the extra button got pressed once
Checks if the extra button got released
Checks if the extra button is released
Checks if the screen is touched
Checks if the screen gets touched once
Checks if the screen gets released
Checks if the object is touched
Checks if the object gets touched once
Checks if the object gets released
Checks if the object is released
Checks if the object is touched
Checks if the object gets touched once
Checks if the object gets released
Checks if the object is released
Checks if the object gets overlapped to touch
Checks if the object gets overlapped to touch
addTouchPad(DPadMode:String, ActionMode:String, ?addToCustomSubstate:Bool, ?posAtCustomSubstate:Int)
Adds the lua touch pad
Adds a lua touch pad camera for the touchpad
Removes the lua touch pad
Checks if a specific lua touch pad button is pressed
Checks if a specific lua touch pad button gets pressed once
Checks if a specific lua touch pad button gets released
Checks if a specific lua touch pad button is released
A variable checks if your Android device is rooted
A variable checks if your Android device has Dolby Atmos
A variable checks if your Android device is an Android TV
A variable checks if your Android device is a tablet
A variable checks if your Android device is a Chromebook laptop
A variable checks if your Android device is in Samsung DeX mode
A variable checks if your Android device is being charged
Checks if the back button is pressed
Checks if the back button gets pressed once
Checks if the back button gets released
Checks if the menu button is pressed
Checks if the menu button gets pressed once
Checks if the menu button gets released
Sets a orientation. Possible values are "Portrait"
, "PortraitUpsideDown"
, "LandscapeLeft"
and "LandscapeRight"
Gets current orientation
Checks if screen keyboard is shown
Checks if clipboard has something on it
Gets clipboard text
Sets the clipboard text
Simulates a back button press
Sets the activity title
A variable that returns mobile controls are visible or not
A variable representing the current mobile controls the player is using
all the possible values are "left"
, "right"
, "custom"
, "hitbox"
and "none"
.
Vibrates your device