1/* $OpenBSD: joystick.h,v 1.6 2011/03/23 16:54:35 pirofti Exp $ */
2/* $NetBSD: joystick.h,v 1.1 1996/03/27 19:18:56 perry Exp $ */
3
4#ifndef _MACHINE_JOYSTICK_H_
5#define _MACHINE_JOYSTICK_H_
6
7#include <sys/ioccom.h>
8
9struct joystick {
10 int x;
11 int y;
12 int b1;
13 int b2;
14};
15
16#define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */
17#define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */
18#define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */
19#define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on Y-axis */
20#define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */
21#define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */
22
23#endif /* _MACHINE_JOYSTICK_H_ */