vitasdk
Documentation of the vitasdk
ctrl.h File Reference
#include <vitasdk/build_utils.h>
#include <psp2common/ctrl.h>
#include <psp2/types.h>

Go to the source code of this file.

Functions

int sceCtrlSetSamplingMode (SceCtrlPadInputMode mode)
 Set the controller mode. More...
 
int sceCtrlSetSamplingModeExt (SceCtrlPadInputMode mode)
 Set the controller extend mode. More...
 
int sceCtrlGetSamplingMode (SceCtrlPadInputMode *pMode)
 Get the current controller mode. More...
 
int sceCtrlPeekBufferPositive (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (polling, positive logic). More...
 
int sceCtrlPeekBufferPositive2 (int port, SceCtrlData *pad_data, int count)
 Get the wireless controller state information (polling, positive logic). More...
 
int sceCtrlPeekBufferPositiveExt (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (polling, positive logic). More...
 
int sceCtrlPeekBufferPositiveExt2 (int port, SceCtrlData *pad_data, int count)
 Get the wireless controller state information (polling, positive logic). More...
 
int sceCtrlPeekBufferNegative (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (polling, negative logic). More...
 
int sceCtrlPeekBufferNegative2 (int port, SceCtrlData *pad_data, int count)
 Get the wireless controller state information (polling, negative logic). More...
 
int sceCtrlReadBufferPositive (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (blocking, positive logic). More...
 
int sceCtrlReadBufferPositive2 (int port, SceCtrlData *pad_data, int count)
 Get the wireless controller state information (blocking, positive logic). More...
 
int sceCtrlReadBufferPositiveExt (int port, SceCtrlData *pad_data, int count)
 Get the controller extended state information (blocking, positive logic). More...
 
int sceCtrlReadBufferPositiveExt2 (int port, SceCtrlData *pad_data, int count)
 Get the wireless controller extended state information (blocking, positive logic). More...
 
int sceCtrlReadBufferNegative (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (blocking, negative logic). More...
 
int sceCtrlReadBufferNegative2 (int port, SceCtrlData *pad_data, int count)
 Get the wireless controller state information (blocking, negative logic). More...
 
int sceCtrlSetRapidFire (int port, int idx, const SceCtrlRapidFireRule *pRule)
 Set rules for button rapid fire. More...
 
int sceCtrlClearRapidFire (int port, int idx)
 Clear rules for button rapid fire. More...
 
int sceCtrlSetActuator (int port, const SceCtrlActuator *pState)
 Control the actuator (vibrate) on paired controllers. More...
 
int sceCtrlSetLightBar (int port, SceUInt8 r, SceUInt8 g, SceUInt8 b)
 Control the light bar on paired controllers. More...
 
int sceCtrlGetControllerPortInfo (SceCtrlPortInfo *info)
 Get controller port information. More...
 
int sceCtrlGetBatteryInfo (int port, SceUInt8 *batt)
 Get controller battery information. More...
 
int sceCtrlSetButtonIntercept (int intercept)
 Sets intercept. More...
 
int sceCtrlGetButtonIntercept (int *intercept)
 Gets intercept. More...
 
int sceCtrlIsMultiControllerSupported (void)
 Check if multi controller is supported. More...