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

Go to the source code of this file.

Data Structures

struct  SceCtrlVirtualControllerDriver
 Structure to pass as argument to ksceCtrlRegisterVirtualControllerDriver. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x34, SceCtrlVirtualControllerDriver)
 
int ksceCtrlSetSamplingMode (int mode)
 Set the controller mode. More...
 
int ksceCtrlGetSamplingMode (int *pMode)
 Get the current controller mode. More...
 
int ksceCtrlPeekBufferPositive (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (polling, positive logic). More...
 
int ksceCtrlPeekBufferNegative (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (polling, negative logic). More...
 
int ksceCtrlReadBufferPositive (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (blocking, positive logic). More...
 
int ksceCtrlReadBufferNegative (int port, SceCtrlData *pad_data, int count)
 Get the controller state information (blocking, negative logic). More...
 
int ksceCtrlSetRapidFire (int port, int idx, const SceCtrlRapidFireRule *pRule)
 Set rules for button rapid fire. More...
 
int ksceCtrlClearRapidFire (int port, int idx)
 Clear rules for button rapid fire. More...
 
int ksceCtrlGetControllerPortInfo (SceCtrlPortInfo *info)
 Get controller port information. More...
 
int ksceCtrlSetButtonIntercept (int intercept)
 Sets intercept. More...
 
int ksceCtrlGetButtonIntercept (int *intercept)
 Gets intercept. More...
 
int ksceCtrlSetButtonEmulation (unsigned int port, unsigned char slot, unsigned int userButtons, unsigned int kernelButtons, unsigned int uiMake)
 Emulate buttons for the digital pad. More...
 
int ksceCtrlSetAnalogEmulation (unsigned int port, unsigned char slot, unsigned char user_lX, unsigned char user_lY, unsigned char user_rX, unsigned char user_rY, unsigned char kernel_lX, unsigned char kernel_lY, unsigned char kernel_rX, unsigned char kernel_rY, unsigned int uiMake)
 Emulate values for the analog pad's X- and Y-axis. More...
 
int ksceCtrlRegisterVirtualControllerDriver (SceCtrlVirtualControllerDriver *driver)
 Register virtual controller driver. More...
 
int ksceCtrlUpdateMaskForNonShell (int clear_mask, int set_mask)
 Update ctrl mask for non shell process. More...
 
int ksceCtrlUpdateMaskForAll (int clear_mask, int set_mask)
 Update ctrl mask for all process. More...
 
int ksceCtrlGetMaskForNonShell (uint32_t *mask)
 Get ctrl mask for non shell process. More...
 
int ksceCtrlGetMaskForAll (uint32_t *mask)
 Get ctrl mask for all process. More...