PSP2SDK  dirty-f9e4f2d
The free SDK for PSP2
Data Structures | Typedefs | Enumerations | Functions
include/psp2/touch.h File Reference

Header file which defines touch related variables and functions. More...

#include <psp2/types.h>
Include dependency graph for touch.h:

Go to the source code of this file.

Data Structures

struct  SceTouchPanelInfo
struct  SceTouchReport
struct  SceTouchData

Typedefs

typedef struct SceTouchPanelInfo SceTouchPanelInfo
typedef struct SceTouchReport SceTouchReport
typedef struct SceTouchData SceTouchData

Enumerations

enum  { SCE_TOUCH_MAX_REPORT = 8 }
enum  { SCE_TOUCH_PORT_FRONT = 0, SCE_TOUCH_PORT_BACK = 1, SCE_TOUCH_PORT_MAX_NUM = 2 }
enum  { SCE_TOUCH_SAMPLING_STATE_START = 0, SCE_TOUCH_SAMPLING_STATE_STOP = 1 }
enum  { SCE_TOUCH_REPORT_INFO_HIDE_UPPER_LAYER = 0x0001 }
enum  { SCE_TOUCH_ERROR_INVALID_ARG = 0x80350001, SCE_TOUCH_ERROR_PRIV_REQUIRED = 0x80350002, SCE_TOUCH_ERROR_FATAL = 0x803500ff }

Functions

int sceTouchGetPanelInfo (SceUInt32 port, SceTouchPanelInfo *pPanelInfo)
int sceTouchRead (SceUInt32 port, SceTouchData *pData, SceUInt32 nBufs)
int sceTouchPeek (SceUInt32 port, SceTouchData *pData, SceUInt32 nBufs)
int sceTouchSetSamplingState (SceUInt32 port, SceUInt32 state)
int sceTouchGetSamplingState (SceUInt32 port, SceUInt32 *pState)
int sceTouchEnableTouchForce (SceUInt32 port)
int sceTouchDisableTouchForce (SceUInt32 port)

Detailed Description

Header file which defines touch related variables and functions.

Copyright (C) 2015 PSP2SDK Project

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.


Enumeration Type Documentation

anonymous enum
Enumerator:
SCE_TOUCH_MAX_REPORT 

FIXME 6 on front | 4 on back.

anonymous enum

Port numbers of touch panels

See also:
sceTouchRead()
sceTouchPeek()
Enumerator:
SCE_TOUCH_PORT_FRONT 

Front touch panel id.

SCE_TOUCH_PORT_BACK 

Back touch panel id.

SCE_TOUCH_PORT_MAX_NUM 

Number of touch panels.

anonymous enum

Sampling port setting of the touch panel

See also:
sceTouchSetSamplingState()
anonymous enum

Info field of SceTouchReport structure

See also:
SceTouchReport()
anonymous enum

Touch error codes


Function Documentation

int sceTouchDisableTouchForce ( SceUInt32  port)

Disable touch force output.

Parameters:
[in]portPort number.
int sceTouchEnableTouchForce ( SceUInt32  port)

Enable touch force output.

Parameters:
[in]portPort number.
int sceTouchGetPanelInfo ( SceUInt32  port,
SceTouchPanelInfo pPanelInfo 
)

Get Touch Panel information

Parameters:
[in]portPort number.
[out]pPanelInfoThe buffer to get the Touch Panel information.
int sceTouchGetSamplingState ( SceUInt32  port,
SceUInt32 *  pState 
)

Get sampling state of touch panel.

Parameters:
[in]portPort number.
[out]pStateThe buffer to receive sampling state.
int sceTouchPeek ( SceUInt32  port,
SceTouchData pData,
SceUInt32  nBufs 
)

Get touch data (Polling)

Parameters:
[in]portport number.
[out]pDataBuffer to receive touch data.
[in]nBufsNumber of buffers to receive touch data.
int sceTouchRead ( SceUInt32  port,
SceTouchData pData,
SceUInt32  nBufs 
)

Get touch data (Blocking)

Parameters:
[in]portPort Number.
[out]pDataBuffer to receive touch data.
[in]nBufsNumber of buffers to receive touch data.
int sceTouchSetSamplingState ( SceUInt32  port,
SceUInt32  state 
)

Set sampling state of touch panel.

Parameters:
[in]portPort number.
[in]stateSampling state.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines