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
15extern "C" {
16#endif
17
26
35
44
54int sceCtrlPeekBufferPositive(int port, SceCtrlData *pad_data, int count);
55
67int sceCtrlPeekBufferPositive2(int port, SceCtrlData *pad_data, int count);
68
80int sceCtrlPeekBufferPositiveExt(int port, SceCtrlData *pad_data, int count);
81
94int sceCtrlPeekBufferPositiveExt2(int port, SceCtrlData *pad_data, int count);
95
105int sceCtrlPeekBufferNegative(int port, SceCtrlData *pad_data, int count);
106
118int sceCtrlPeekBufferNegative2(int port, SceCtrlData *pad_data, int count);
119
129int sceCtrlReadBufferPositive(int port, SceCtrlData *pad_data, int count);
130
142int sceCtrlReadBufferPositive2(int port, SceCtrlData *pad_data, int count);
143
155int sceCtrlReadBufferPositiveExt(int port, SceCtrlData *pad_data, int count);
156
169int sceCtrlReadBufferPositiveExt2(int port, SceCtrlData *pad_data, int count);
170
180int sceCtrlReadBufferNegative(int port, SceCtrlData *pad_data, int count);
181
193int sceCtrlReadBufferNegative2(int port, SceCtrlData *pad_data, int count);
194
204int sceCtrlSetRapidFire(int port, int idx, const SceCtrlRapidFireRule* pRule);
205
214int sceCtrlClearRapidFire(int port, int idx);
215
224int sceCtrlSetActuator(int port, const SceCtrlActuator* pState);
225
237
245
254int sceCtrlGetBatteryInfo(int port, SceUInt8 *batt);
255
266int sceCtrlSetButtonIntercept(int intercept);
267
275int 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