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

Go to the source code of this file.

Data Structures

struct  SceTouchPanelInfo
 
struct  SceTouchReport
 
struct  SceTouchData
 

Macros

#define SCE_TOUCH_MAX_REPORT   8
 FIXME 6 on front | 4 on back. More...
 

Enumerations

enum  SceTouchErrorCode { SCE_TOUCH_ERROR_INVALID_ARG = 0x80350001 , SCE_TOUCH_ERROR_PRIV_REQUIRED = 0x80350002 , SCE_TOUCH_ERROR_FATAL = 0x803500FF }
 Touch error codes. More...
 
enum  SceTouchPortType { SCE_TOUCH_PORT_FRONT = 0 , SCE_TOUCH_PORT_BACK = 1 , SCE_TOUCH_PORT_MAX_NUM = 2 }
 Port numbers of touch panels. More...
 
enum  SceTouchSamplingState { SCE_TOUCH_SAMPLING_STATE_STOP = 0 , SCE_TOUCH_SAMPLING_STATE_START = 1 }
 Sampling port setting of the touch panel. More...
 
enum  SceTouchReportInfo { SCE_TOUCH_REPORT_INFO_HIDE_UPPER_LAYER = 0x0001 }
 Info field of SceTouchReport structure. More...
 

Functions

 VITASDK_BUILD_ASSERT_EQ (0x30, SceTouchPanelInfo)
 
 VITASDK_BUILD_ASSERT_EQ (0x10, SceTouchReport)
 
 VITASDK_BUILD_ASSERT_EQ (0x90, SceTouchData)
 
int sceTouchGetPanelInfo (SceUInt32 port, SceTouchPanelInfo *pPanelInfo)
 Get Touch Panel information. More...
 
int sceTouchRead (SceUInt32 port, SceTouchData *pData, SceUInt32 nBufs)
 Get touch data (Blocking) More...
 
int sceTouchPeek (SceUInt32 port, SceTouchData *pData, SceUInt32 nBufs)
 Get touch data (Polling) More...
 
int sceTouchSetSamplingState (SceUInt32 port, SceTouchSamplingState state)
 Set sampling state of touch panel. More...
 
int sceTouchGetSamplingState (SceUInt32 port, SceTouchSamplingState *pState)
 Get sampling state of touch panel. More...
 
int sceTouchEnableTouchForce (SceUInt32 port)
 Enable touch force output. More...
 
int sceTouchDisableTouchForce (SceUInt32 port)
 Disable touch force output. More...