|
PS2SDK
PS2 Homebrew Libraries
|
#include <libpad.h>
Include dependency graph for input.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | actuator_t |
| struct | pad_t |
Functions | |
| pad_t * | pad_open (unsigned int port, unsigned int slot, unsigned int mode, unsigned int lock) |
| static void | pad_get_buttons (pad_t *pad) |
| void | pad_close (pad_t *pad) |
| void | pad_wait (pad_t *pad) |
| void | pad_set_mode (pad_t *pad, int mode, int lock) |
| void | pad_set_sensitivity (pad_t *pad, int enable) |
| void | pad_init_actuators (pad_t *pad) |
| void | pad_set_actuators (pad_t *pad, int small, unsigned char large) |
| int | pad_get_state (pad_t *pad) |
| int | pad_get_num_modes (pad_t *pad) |
| int | pad_has_type (pad_t *pad, int type) |
| int | pad_get_type (pad_t *pad) |
| int | pad_get_mode (pad_t *pad) |
Input library
Definition in file input.h.
| struct actuator_t |
| struct pad_t |
Collaboration diagram for pad_t:| Data Fields | ||
|---|---|---|
| char | port | |
| char | slot | |
| char | mode | |
| char | lock | |
| int | type | |
| char | state | |
| char | last_state | |
| char | exec_cmd | |
| char | num_modes | |
| char | sensitivity | |
| struct padButtonStatus * | buttons | |
| actuator_t * | actuator | |
| char * | buffer | |
| pad_t* pad_open | ( | unsigned int | port, |
| unsigned int | slot, | ||
| unsigned int | mode, | ||
| unsigned int | lock | ||
| ) |
|
inlinestatic |
| void pad_wait | ( | pad_t * | pad | ) |
Wait until the pad is ready to accept commands
Definition at line 122 of file input.c.
References pad_get_state().
Referenced by pad_set_sensitivity().
| void pad_set_mode | ( | pad_t * | pad, |
| int | mode, | ||
| int | lock | ||
| ) |
| void pad_set_sensitivity | ( | pad_t * | pad, |
| int | enable | ||
| ) |
Set the pad's pressure sensitivity
Definition at line 261 of file input.c.
References pad_wait(), padEnterPressMode(), padExitPressMode(), and padInfoPressMode().
| void pad_set_actuators | ( | pad_t * | pad, |
| int | small, | ||
| unsigned char | large | ||
| ) |
| int pad_get_state | ( | pad_t * | pad | ) |
Get the pad's state
Definition at line 103 of file input.c.
References padGetState().
Referenced by pad_wait().
| int pad_get_num_modes | ( | pad_t * | pad | ) |
Get number of modes supported by pad
Definition at line 145 of file input.c.
References padInfoMode().
| int pad_has_type | ( | pad_t * | pad, |
| int | type | ||
| ) |
| int pad_get_type | ( | pad_t * | pad | ) |
| int pad_get_mode | ( | pad_t * | pad | ) |
Get the pad's current mode