1996-09-21 15:59:43 +01:00
|
|
|
#ifndef _MACHINE_JOYSTICK_H_
|
|
|
|
#define _MACHINE_JOYSTICK_H_
|
1995-01-25 20:41:06 +00:00
|
|
|
|
1996-09-21 15:59:43 +01:00
|
|
|
#include <sys/ioccom.h>
|
1995-01-25 20:41:06 +00:00
|
|
|
|
1995-02-22 23:34:58 +00:00
|
|
|
struct joystick {
|
|
|
|
int x;
|
|
|
|
int y;
|
|
|
|
int b1;
|
|
|
|
int b2;
|
|
|
|
};
|
|
|
|
|
1995-01-25 20:41:06 +00:00
|
|
|
#define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */
|
|
|
|
#define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */
|
|
|
|
#define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */
|
|
|
|
#define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on X-axis */
|
|
|
|
#define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */
|
|
|
|
#define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */
|
|
|
|
|
1996-09-21 15:59:43 +01:00
|
|
|
#endif /* !_MACHINE_JOYSTICK_H_ */
|