154160Speter/*-
254160Speter * Copyright (c) 1995 Jean-Marc Zucconi
354160Speter * All rights reserved.
454160Speter *
554160Speter * Redistribution and use in source and binary forms, with or without
654160Speter * modification, are permitted provided that the following conditions
754160Speter * are met:
854160Speter * 1. Redistributions of source code must retain the above copyright
954160Speter *    notice, this list of conditions and the following disclaimer
1054160Speter *    in this position and unchanged.
1154160Speter * 2. Redistributions in binary form must reproduce the above copyright
1254160Speter *    notice, this list of conditions and the following disclaimer in the
1354160Speter *    documentation and/or other materials provided with the distribution.
1454160Speter * 3. The name of the author may not be used to endorse or promote products
1597748Sschweikh *    derived from this software without specific prior written permission
1654160Speter *
1754160Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
1854160Speter * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1954160Speter * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
2054160Speter * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
2154160Speter * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
2254160Speter * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
2354160Speter * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2454160Speter * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2554160Speter * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2654160Speter * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2754160Speter *
2854160Speter * $FreeBSD$
2954160Speter */
305904Sjmz
3154160Speter#ifndef	_SYS_JOYSTICK_H_
3254160Speter#define	_SYS_JOYSTICK_H_
3354160Speter
3418444Sbde#include <sys/ioccom.h>
355904Sjmz
366644Sjmzstruct joystick {
376644Sjmz    int x;
386644Sjmz    int y;
396644Sjmz    int b1;
406644Sjmz    int b2;
416644Sjmz};
426644Sjmz
435904Sjmz#define JOY_SETTIMEOUT    _IOW('J', 1, int)    /* set timeout */
445904Sjmz#define JOY_GETTIMEOUT    _IOR('J', 2, int)    /* get timeout */
455904Sjmz#define JOY_SET_X_OFFSET  _IOW('J', 3, int)    /* set offset on X-axis */
46139866Skeramida#define JOY_SET_Y_OFFSET  _IOW('J', 4, int)    /* set offset on Y-axis */
475904Sjmz#define JOY_GET_X_OFFSET  _IOR('J', 5, int)    /* get offset on X-axis */
485904Sjmz#define JOY_GET_Y_OFFSET  _IOR('J', 6, int)    /* get offset on Y-axis */
495904Sjmz
5054160Speter#endif /* !_SYS_JOYSTICK_H_ */
51