NetBSD/sys/arch/arc/include/joystick.h

25 lines
769 B
C
Raw Normal View History

/* $NetBSD: joystick.h,v 1.2 2000/02/22 11:26:02 soda Exp $ */
2000-02-22 14:05:02 +03:00
/* $OpenBSD: joystick.h,v 1.1 1998/05/05 05:44:43 imp Exp $ */
/* NetBSD: joystick.h,v 1.1 1996/03/27 19:18:56 perry Exp */
2000-02-22 14:05:02 +03:00
#ifndef _JOY_IOCTL_H_
#define _JOY_IOCTL_H_
#include <sys/ioccom.h>
struct joystick {
int x;
int y;
int b1;
int b2;
};
#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 */
#endif /* _JOY_IOCTL_H_ */