Tachyon (current)
Current Main Branch
|
Go to the source code of this file.
Macros | |
#define | EVENTIO_SUCCESS 0 |
#define | EVENTIO_ERROR -1 |
#define | EVENTIO_BACK 0x0001 |
#define | EVENTIO_TASK 0x0002 |
#define | EVENTIO_START 0x0004 |
#define | EVENTIO_UNUSED08 0x0008 |
#define | EVENTIO_UNUSED10 0x0010 |
#define | EVENTIO_UNUSED20 0x0020 |
#define | EVENTIO_UNUSED40 0x0040 |
#define | EVENTIO_UNUSED80 0x0080 |
#define | EVENTIO_GAMEPAD_A 0x0100 |
#define | EVENTIO_GAMEPAD_B 0x0200 |
#define | EVENTIO_GAMEPAD_X 0x0400 |
#define | EVENTIO_GAMEPAD_Y 0x0800 |
#define | EVENTIO_TL 0x1000 |
#define | EVENTIO_TR 0x2000 |
#define | EVENTIO_THUMBL 0x4000 |
#define | EVENTIO_THUMBR 0x8000 |
#define | EVENTIO_JOYSTICK_STD 0x01 |
#define | EVENTIO_JOYSTICK_LOGIF310 0x02 |
#define | EVENTIO_JOYSTICK_NYKO 0x04 |
#define | EVENTIO_SPACEBALL_STD 0x01 |
Typedefs | |
typedef void * | evio_handle |
Functions | |
evio_handle | evio_open (const char *devpath) |
int | evio_close (evio_handle) |
int | evio_is_joystick (evio_handle) |
int | evio_print_devinfo (evio_handle) |
int | evio_get_joystick_status (evio_handle, float *abs_x1, float *abs_y1, float *abs_x2, float *abs_y2, int *buttons) |
#define EVENTIO_BACK 0x0001 |
Definition at line 23 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_ERROR -1 |
Definition at line 21 of file eventio.h.
Referenced by evio_print_devinfo().
#define EVENTIO_GAMEPAD_A 0x0100 |
Definition at line 33 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_GAMEPAD_B 0x0200 |
Definition at line 34 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_GAMEPAD_X 0x0400 |
Definition at line 35 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_GAMEPAD_Y 0x0800 |
Definition at line 36 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_JOYSTICK_LOGIF310 0x02 |
Definition at line 44 of file eventio.h.
Referenced by evio_get_joystick_status(), and evio_open().
#define EVENTIO_JOYSTICK_NYKO 0x04 |
Definition at line 45 of file eventio.h.
Referenced by evio_get_joystick_status(), and evio_open().
#define EVENTIO_JOYSTICK_STD 0x01 |
Definition at line 43 of file eventio.h.
Referenced by evio_get_joystick_status(), and evio_open().
#define EVENTIO_SPACEBALL_STD 0x01 |
Definition at line 47 of file eventio.h.
Referenced by evio_open().
#define EVENTIO_START 0x0004 |
Definition at line 25 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_SUCCESS 0 |
Definition at line 20 of file eventio.h.
Referenced by evio_print_devinfo().
#define EVENTIO_TASK 0x0002 |
Definition at line 24 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_THUMBL 0x4000 |
Definition at line 40 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_THUMBR 0x8000 |
Definition at line 41 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_TL 0x1000 |
Definition at line 38 of file eventio.h.
Referenced by evio_get_joystick_status().
#define EVENTIO_TR 0x2000 |
Definition at line 39 of file eventio.h.
Referenced by evio_get_joystick_status().
typedef void* evio_handle |
int evio_close | ( | evio_handle | ) |
int evio_get_joystick_status | ( | evio_handle | , |
float * | abs_x1, | ||
float * | abs_y1, | ||
float * | abs_x2, | ||
float * | abs_y2, | ||
int * | buttons | ||
) |
Definition at line 300 of file eventio.c.
References evio::devjoystick, EVENTIO_BACK, EVENTIO_GAMEPAD_A, EVENTIO_GAMEPAD_B, EVENTIO_GAMEPAD_X, EVENTIO_GAMEPAD_Y, EVENTIO_JOYSTICK_LOGIF310, EVENTIO_JOYSTICK_NYKO, EVENTIO_JOYSTICK_STD, EVENTIO_START, EVENTIO_TASK, EVENTIO_THUMBL, EVENTIO_THUMBR, EVENTIO_TL, EVENTIO_TR, evio_absinfo2float(), evio_get_button_status(), EVIO_TESTBIT, evio::fd, evio::keybit, and evio::keystate.
int evio_is_joystick | ( | evio_handle | ) |
evio_handle evio_open | ( | const char * | devpath | ) |
Definition at line 96 of file eventio.c.
References evio::absbit, evio::devid, evio::devjoystick, evio::devname, evio::devpath, evio::devspaceball, evio::evbit, EVENTIO_JOYSTICK_LOGIF310, EVENTIO_JOYSTICK_NYKO, EVENTIO_JOYSTICK_STD, EVENTIO_SPACEBALL_STD, EVIO_TESTBIT, evio::fd, evio::keybit, REL_RX, REL_RY, REL_RZ, and evio::relbit.
int evio_print_devinfo | ( | evio_handle | ) |
Definition at line 467 of file eventio.c.
References evio::devid, evio::devjoystick, evio::devname, evio::devpath, evio::devspaceball, EVENTIO_ERROR, EVENTIO_SUCCESS, and evio_dev_recognized().