PSP2SDK
dirty-f9e4f2d
The free SDK for PSP2
|
Header file which defines touch related variables and functions. More...
#include <psp2/types.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) |
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/.
anonymous enum |
Port numbers of touch panels
anonymous enum |
Sampling port setting of the touch panel
anonymous enum |
Info field of SceTouchReport structure
anonymous enum |
Touch error codes
int sceTouchDisableTouchForce | ( | SceUInt32 | port | ) |
Disable touch force output.
[in] | port | Port number. |
int sceTouchEnableTouchForce | ( | SceUInt32 | port | ) |
Enable touch force output.
[in] | port | Port number. |
int sceTouchGetPanelInfo | ( | SceUInt32 | port, |
SceTouchPanelInfo * | pPanelInfo | ||
) |
Get Touch Panel information
[in] | port | Port number. |
[out] | pPanelInfo | The buffer to get the Touch Panel information. |
int sceTouchGetSamplingState | ( | SceUInt32 | port, |
SceUInt32 * | pState | ||
) |
Get sampling state of touch panel.
[in] | port | Port number. |
[out] | pState | The buffer to receive sampling state. |
int sceTouchPeek | ( | SceUInt32 | port, |
SceTouchData * | pData, | ||
SceUInt32 | nBufs | ||
) |
Get touch data (Polling)
[in] | port | port number. |
[out] | pData | Buffer to receive touch data. |
[in] | nBufs | Number of buffers to receive touch data. |
int sceTouchRead | ( | SceUInt32 | port, |
SceTouchData * | pData, | ||
SceUInt32 | nBufs | ||
) |
Get touch data (Blocking)
[in] | port | Port Number. |
[out] | pData | Buffer to receive touch data. |
[in] | nBufs | Number of buffers to receive touch data. |
int sceTouchSetSamplingState | ( | SceUInt32 | port, |
SceUInt32 | state | ||
) |
Set sampling state of touch panel.
[in] | port | Port number. |
[in] | state | Sampling state. |