Project

General

Profile

Statistics
| Revision:

root / lab4 / .minix-src / include / sys / joystick.h @ 14

History | View | Annotate | Download (691 Bytes)

1
/*        $NetBSD: joystick.h,v 1.2 2005/12/03 17:10:46 christos Exp $        */
2

    
3
#ifndef _SYS_JOYSTICK_H_
4
#define _SYS_JOYSTICK_H_
5

    
6
#include <sys/types.h>
7
#include <sys/ioctl.h>
8

    
9
struct joystick {
10
    int x;
11
    int y;
12
    int b1;
13
    int b2;
14
};
15

    
16
#define JOY_SETTIMEOUT    _IOW('J', 1, int)    /* set timeout */
17
#define JOY_GETTIMEOUT    _IOR('J', 2, int)    /* get timeout */
18
#define JOY_SET_X_OFFSET  _IOW('J', 3, int)    /* set offset on X-axis */
19
#define JOY_SET_Y_OFFSET  _IOW('J', 4, int)    /* set offset on X-axis */
20
#define JOY_GET_X_OFFSET  _IOR('J', 5, int)    /* get offset on X-axis */
21
#define JOY_GET_Y_OFFSET  _IOR('J', 6, int)    /* get offset on Y-axis */
22

    
23
#endif /* _SYS_JOYSTICK_H_ */