Lua Player Plus Vita
Documentation of lpp-vita
Controls Class Reference

Public Member Functions

int read (int port)
 Read pressed buttons. More...
 
int[] readLeftAnalog (int port)
 Read left analog state. More...
 
int[] readRightAnalog (int port)
 Read right analog state. More...
 
int[] readTouch (void)
 Read touchscreen state. More...
 
int[] readRetroTouch (void)
 Read rearpad state. More...
 
bool check (int bitmask, Ctrl value)
 Check if a button is pressed. More...
 
void rumble (int port, int small, int large)
 Changes vibration intensity for Dualshock devices. More...
 
void setLightbar (int port, int color)
 Set lightbar color for Dualshock 4 devices. More...
 
void lockHomeButton (void)
 Locks default PS button functionality. More...
 
void unlockHomeButton (void)
 Unlocks default PS button functionality. More...
 
table getDeviceInfo (void)
 Get info about controllers. More...
 
bool headsetStatus (void)
 Check if an headset is plugged in. More...
 
Ctrl getEnterButton (void)
 Return set controller enter button. More...
 
void enableGyro (void)
 Enable gyroscope sensor. More...
 
void enableAccel (void)
 Enable accelerometer sensor. More...
 
void disableGyro (void)
 Disable gyroscope sensor. More...
 
void disableAccel (void)
 Disable accelerometer sensor. More...
 
number[] readGyro (void)
 Read gyroscope state. More...
 
number[] readAccel (void)
 Read accelerometer state. More...