#include <stdlib.h>
#include <string.h>
#include "pad_linux.h"
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <linux/joystick.h>
Go to the source code of this file.
Defines | |
#define | NAME_LENGTH 512 |
Functions | |
int | pad_sdl_js_axis (int n) |
float | pad_sdl_js_axisf (int n) |
int | pad_sdl_js_button (int n) |
int | pad_sdl_js_button_push (int n) |
void | pad_sdl_js_close () |
int | pad_sdl_js_hat (int n) |
int | pad_sdl_js_hat_push (int n) |
bool | pad_sdl_js_isok () |
int | pad_sdl_js_open (const char *device) |
void | pad_sdl_js_setok (bool b) |
void | pad_sdl_js_update () |
Variables | |
unsigned char | axes = 2 |
int * | axis = NULL |
int * | button = NULL |
unsigned char | buttons = 2 |
int | fd = 0 |
static bool | usejoypad = false |
#define NAME_LENGTH 512 |
Definition at line 35 of file pad_linux.cpp.
int pad_sdl_js_axis | ( | int | n | ) |
Definition at line 121 of file pad_linux.cpp.
float pad_sdl_js_axisf | ( | int | n | ) |
Definition at line 129 of file pad_linux.cpp.
int pad_sdl_js_button | ( | int | n | ) |
Definition at line 141 of file pad_linux.cpp.
int pad_sdl_js_button_push | ( | int | n | ) |
Definition at line 154 of file pad_linux.cpp.
void pad_sdl_js_close | ( | ) |
Definition at line 68 of file pad_linux.cpp.
int pad_sdl_js_hat | ( | int | n | ) |
Definition at line 136 of file pad_linux.cpp.
int pad_sdl_js_hat_push | ( | int | n | ) |
Definition at line 149 of file pad_linux.cpp.
bool pad_sdl_js_isok | ( | ) |
Definition at line 74 of file pad_linux.cpp.
int pad_sdl_js_open | ( | const char * | device | ) |
Definition at line 40 of file pad_linux.cpp.
void pad_sdl_js_setok | ( | bool | b | ) |
Definition at line 80 of file pad_linux.cpp.
void pad_sdl_js_update | ( | ) |
Definition at line 84 of file pad_linux.cpp.
unsigned char axes = 2 |
Definition at line 27 of file pad_linux.cpp.
int* axis = NULL |
Definition at line 32 of file pad_linux.cpp.
int* button = NULL |
Definition at line 33 of file pad_linux.cpp.
unsigned char buttons = 2 |
Definition at line 28 of file pad_linux.cpp.
int fd = 0 |
Definition at line 26 of file pad_linux.cpp.
bool usejoypad = false [static] |
Definition at line 31 of file pad_linux.cpp.