mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
95344a43ed
dummy array of 4 integers. Declare the struct in the header file and update the man page.
22 lines
614 B
C
22 lines
614 B
C
#ifndef _JOY_IOCTL_H_
|
|
#define _JOY_IOCTL_H_
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/ioctl.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_ */
|