Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

sjoy.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <assert.h>
#include <linux/types.h>
#include <linux/joystick.h>
#include "sjoy.h"

Go to the source code of this file.

Defines

#define N_JOY   2

Functions

int sjoy_open (void)
int sjoy_close (void)
void sjoy_poll (void)
int sjoy_get_button (int joy)
int sjoy_get_axis (int joy, int axis)
int sjoy_get_ps2_button (int joy)


Define Documentation

#define N_JOY   2
 

Definition at line 14 of file sjoy.c.


Function Documentation

int sjoy_close void   
 

Definition at line 52 of file sjoy.c.

Referenced by SJOY_PS2_L_RIGHT(), and sjoy_open().

int sjoy_get_axis int    joy,
int    axis
 

Definition at line 107 of file sjoy.c.

int sjoy_get_button int    joy
 

Definition at line 101 of file sjoy.c.

int sjoy_get_ps2_button int    joy
 

Definition at line 113 of file sjoy.c.

int sjoy_open void   
 

Definition at line 29 of file sjoy.c.

Referenced by SJOY_PS2_L_RIGHT(), and glutInit().

void sjoy_poll void   
 

Definition at line 68 of file sjoy.c.

Referenced by SJOY_PS2_L_RIGHT().


ps2gl version cvs