vitasdk
Documentation of the vitasdk
ctrl.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_CTRL_H_
8 #define _PSP2_CTRL_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2common/ctrl.h>
12 #include <psp2/types.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
26 
35 
44 
54 int sceCtrlPeekBufferPositive(int port, SceCtrlData *pad_data, int count);
55 
67 int sceCtrlPeekBufferPositive2(int port, SceCtrlData *pad_data, int count);
68 
80 int sceCtrlPeekBufferPositiveExt(int port, SceCtrlData *pad_data, int count);
81 
94 int sceCtrlPeekBufferPositiveExt2(int port, SceCtrlData *pad_data, int count);
95 
105 int sceCtrlPeekBufferNegative(int port, SceCtrlData *pad_data, int count);
106 
118 int sceCtrlPeekBufferNegative2(int port, SceCtrlData *pad_data, int count);
119 
129 int sceCtrlReadBufferPositive(int port, SceCtrlData *pad_data, int count);
130 
142 int sceCtrlReadBufferPositive2(int port, SceCtrlData *pad_data, int count);
143 
155 int sceCtrlReadBufferPositiveExt(int port, SceCtrlData *pad_data, int count);
156 
169 int sceCtrlReadBufferPositiveExt2(int port, SceCtrlData *pad_data, int count);
170 
180 int sceCtrlReadBufferNegative(int port, SceCtrlData *pad_data, int count);
181 
193 int sceCtrlReadBufferNegative2(int port, SceCtrlData *pad_data, int count);
194 
204 int sceCtrlSetRapidFire(int port, int idx, const SceCtrlRapidFireRule* pRule);
205 
214 int sceCtrlClearRapidFire(int port, int idx);
215 
224 int sceCtrlSetActuator(int port, const SceCtrlActuator* pState);
225 
237 
245 
254 int sceCtrlGetBatteryInfo(int port, SceUInt8 *batt);
255 
266 int sceCtrlSetButtonIntercept(int intercept);
267 
275 int sceCtrlGetButtonIntercept(int *intercept);
276 
283 
284 #ifdef __cplusplus
285 }
286 #endif
287 
288 #endif /* _PSP2_CTRL_H_ */
int sceCtrlSetActuator(int port, const SceCtrlActuator *pState)
Control the actuator (vibrate) on paired controllers.
int sceCtrlPeekBufferNegative2(int port, SceCtrlData *pad_data, int count)
Get the wireless controller state information (polling, negative logic).
int sceCtrlReadBufferPositive(int port, SceCtrlData *pad_data, int count)
Get the controller state information (blocking, positive logic).
int sceCtrlGetBatteryInfo(int port, SceUInt8 *batt)
Get controller battery information.
int sceCtrlPeekBufferPositiveExt2(int port, SceCtrlData *pad_data, int count)
Get the wireless controller state information (polling, positive logic).
int sceCtrlPeekBufferPositive(int port, SceCtrlData *pad_data, int count)
Get the controller state information (polling, positive logic).
int sceCtrlPeekBufferPositive2(int port, SceCtrlData *pad_data, int count)
Get the wireless controller state information (polling, positive logic).
SceCtrlPadInputMode
Controller mode.
Definition: ctrl.h:68
int sceCtrlGetButtonIntercept(int *intercept)
Gets intercept.
int sceCtrlSetSamplingMode(SceCtrlPadInputMode mode)
Set the controller mode.
int sceCtrlIsMultiControllerSupported(void)
Check if multi controller is supported.
int sceCtrlGetSamplingMode(SceCtrlPadInputMode *pMode)
Get the current controller mode.
int sceCtrlReadBufferPositive2(int port, SceCtrlData *pad_data, int count)
Get the wireless controller state information (blocking, positive logic).
int sceCtrlSetRapidFire(int port, int idx, const SceCtrlRapidFireRule *pRule)
Set rules for button rapid fire.
int sceCtrlGetControllerPortInfo(SceCtrlPortInfo *info)
Get controller port information.
int sceCtrlReadBufferPositiveExt(int port, SceCtrlData *pad_data, int count)
Get the controller extended state information (blocking, positive logic).
int sceCtrlClearRapidFire(int port, int idx)
Clear rules for button rapid fire.
int sceCtrlReadBufferNegative2(int port, SceCtrlData *pad_data, int count)
Get the wireless controller state information (blocking, negative logic).
int sceCtrlReadBufferNegative(int port, SceCtrlData *pad_data, int count)
Get the controller state information (blocking, negative logic).
int sceCtrlSetSamplingModeExt(SceCtrlPadInputMode mode)
Set the controller extend mode.
int sceCtrlReadBufferPositiveExt2(int port, SceCtrlData *pad_data, int count)
Get the wireless controller extended state information (blocking, positive logic).
int sceCtrlSetLightBar(int port, SceUInt8 r, SceUInt8 g, SceUInt8 b)
Control the light bar on paired controllers.
int sceCtrlSetButtonIntercept(int intercept)
Sets intercept.
int sceCtrlPeekBufferNegative(int port, SceCtrlData *pad_data, int count)
Get the controller state information (polling, negative logic).
int sceCtrlPeekBufferPositiveExt(int port, SceCtrlData *pad_data, int count)
Get the controller state information (polling, positive logic).
Structure to pass as argument to sceCtrlSetActuator.
Definition: ctrl.h:132
Returned controller data.
Definition: ctrl.h:78
Structure to pass as argument to sceCtrlGetControllerPortInfo.
Definition: ctrl.h:140
Structure to pass as argument to sceCtrlSetRapidFire.
Definition: ctrl.h:121
uint8_t SceUInt8
Definition: types.h:36