joystick.h revision 6644
15904Sjmz#ifndef _JOY_IOCTL_H_ 25904Sjmz#define _JOY_IOCTL_H_ 35904Sjmz 45904Sjmz#include <sys/types.h> 55904Sjmz#include <sys/ioctl.h> 65904Sjmz 76644Sjmzstruct joystick { 86644Sjmz int x; 96644Sjmz int y; 106644Sjmz int b1; 116644Sjmz int b2; 126644Sjmz}; 136644Sjmz 145904Sjmz#define JOY_SETTIMEOUT _IOW('J', 1, int) /* set timeout */ 155904Sjmz#define JOY_GETTIMEOUT _IOR('J', 2, int) /* get timeout */ 165904Sjmz#define JOY_SET_X_OFFSET _IOW('J', 3, int) /* set offset on X-axis */ 175904Sjmz#define JOY_SET_Y_OFFSET _IOW('J', 4, int) /* set offset on X-axis */ 185904Sjmz#define JOY_GET_X_OFFSET _IOR('J', 5, int) /* get offset on X-axis */ 195904Sjmz#define JOY_GET_Y_OFFSET _IOR('J', 6, int) /* get offset on Y-axis */ 205904Sjmz 215904Sjmz#endif /* _JOY_IOCTL_H_ */ 22