mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-30 06:42:48 +03:00
66d97267c7
This excludes all headers in /usr/include/dev because that directory is bonkers huge (18M). We can add these on an as-needed basis.
23 lines
732 B
C
Vendored
23 lines
732 B
C
Vendored
/* $OpenBSD: joystick.h,v 1.6 2011/03/23 16:54:35 pirofti Exp $ */
|
|
/* $NetBSD: joystick.h,v 1.1 1996/03/27 19:18:56 perry Exp $ */
|
|
|
|
#ifndef _MACHINE_JOYSTICK_H_
|
|
#define _MACHINE_JOYSTICK_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 Y-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 /* _MACHINE_JOYSTICK_H_ */ |