mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 22:33:08 +00:00
sys/param.h was manually adjusted to not define __NetBSD_Version__ since it will be defined by the compiler.
23 lines
690 B
C
Vendored
23 lines
690 B
C
Vendored
/* $NetBSD: joystick.h,v 1.2 2005/12/03 17:10:46 christos Exp $ */
|
|
|
|
#ifndef _SYS_JOYSTICK_H_
|
|
#define _SYS_JOYSTICK_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 /* _SYS_JOYSTICK_H_ */ |