FreeBASIC  0.91.0
gfx_joystick.c File Reference
#include "../fb_gfx.h"
#include "fb_gfx_win32.h"
#include <mmsystem.h>
Include dependency graph for gfx_joystick.c:

Go to the source code of this file.

Data Structures

struct  _JOYDATA
 

Macros

#define CALCPOS(pos, min, max)   (((((float)(pos) - (float)(min)) * 2.0) / ((float)(max) - (float)(min) + 1.0)) - 1.0)
 
#define POV_LAP   2250
 

Typedefs

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 joy [16]
 
static int inited = FALSE
 

Macro Definition Documentation

#define CALCPOS (   pos,
  min,
  max 
)    (((((float)(pos) - (float)(min)) * 2.0) / ((float)(max) - (float)(min) + 1.0)) - 1.0)

Definition at line 7 of file gfx_joystick.c.

#define POV_LAP   2250

Definition at line 17 of file gfx_joystick.c.

Typedef Documentation

typedef struct _JOYDATA JOYDATA

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 19 of file gfx_joystick.c.

Here is the call graph for this function:

Variable Documentation

int inited = FALSE
static

Definition at line 15 of file gfx_joystick.c.

JOYDATA joy[16]
static

Definition at line 14 of file gfx_joystick.c.