FreeBASIC  0.91.0
gfx_joystick.c File Reference
#include "../fb_gfx.h"
#include "fb_gfx_linux.h"
#include <fcntl.h>
#include <sys/ioctl.h>
Include dependency graph for gfx_joystick.c:

Go to the source code of this file.

Data Structures

struct  _JS_EVENT
 
struct  _JOYDATA
 

Macros

#define JS_EVENT_BUTTON   0x01
 
#define JS_EVENT_AXIS   0x02
 
#define JS_EVENT_INIT   0x80
 
#define JSIOCGVERSION   _IOR('j', 0x01, unsigned int)
 

Typedefs

typedef struct _JS_EVENT JS_EVENT
 
typedef struct _JOYDATA JOYDATA
 

Functions

FBCALL int fb_GfxGetJoystick (int id, ssize_t *buttons, float *a1, float *a2, float *a3, float *a4, float *a5, float *a6, float *a7, float *a8)
 

Variables

static JOYDATA joydata [16]
 
static int inited = FALSE
 

Macro Definition Documentation

#define JS_EVENT_AXIS   0x02

Definition at line 11 of file gfx_joystick.c.

#define JS_EVENT_BUTTON   0x01

Definition at line 10 of file gfx_joystick.c.

#define JS_EVENT_INIT   0x80

Definition at line 12 of file gfx_joystick.c.

#define JSIOCGVERSION   _IOR('j', 0x01, unsigned int)

Definition at line 21 of file gfx_joystick.c.

Typedef Documentation

typedef struct _JOYDATA JOYDATA
typedef struct _JS_EVENT JS_EVENT

Function Documentation

FBCALL int fb_GfxGetJoystick ( int  id,
ssize_t *  buttons,
float *  a1,
float *  a2,
float *  a3,
float *  a4,
float *  a5,
float *  a6,
float *  a7,
float *  a8 
)

Definition at line 32 of file gfx_joystick.c.

Here is the call graph for this function:

Variable Documentation

int inited = FALSE
static

Definition at line 30 of file gfx_joystick.c.

JOYDATA joydata[16]
static

Definition at line 29 of file gfx_joystick.c.