mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-03-24 01:34:06 +00:00
Install joystick-properties.h and xorg-joystick.pc for clients.
Let's clients be aware of properties made available by the driver.
This commit is contained in:
23
include/Makefile.am
Normal file
23
include/Makefile.am
Normal file
@@ -0,0 +1,23 @@
|
||||
# Copyright 2008 Sascha Hlusiak
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# on the rights to use, copy, modify, merge, publish, distribute, sub
|
||||
# license, and/or sell copies of the Software, and to permit persons to whom
|
||||
# the Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice (including the next
|
||||
# paragraph) shall be included in all copies or substantial portions of the
|
||||
# Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
||||
# SASCHA HLUSIAK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
EXTRA_DIST = joystick-properties.h
|
||||
|
||||
sdk_HEADERS = joystick-properties.h
|
||||
96
include/joystick-properties.h
Normal file
96
include/joystick-properties.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2007-2008 by Sascha Hlusiak. <saschahlusiak@freedesktop.org>
|
||||
*
|
||||
* Permission to use, copy, modify, distribute, and sell this software and its
|
||||
* documentation for any purpose is hereby granted without fee, provided that
|
||||
* the above copyright notice appear in all copies and that both that
|
||||
* copyright notice and this permission notice appear in supporting
|
||||
* documentation, and that the name of Sascha Hlusiak not be used in
|
||||
* advertising or publicity pertaining to distribution of the software without
|
||||
* specific, written prior permission. Sascha Hlusiak makes no
|
||||
* representations about the suitability of this software for any purpose. It
|
||||
* is provided "as is" without express or implied warranty.
|
||||
*
|
||||
* SASCHA HLUSIAK DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
||||
* EVENT SHALL SASCHA HLUSIAK BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
||||
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
||||
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
||||
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _JOYSTICK_PROPERTIES_
|
||||
#define _JOYSTICK_PROPERTIES_
|
||||
|
||||
/**
|
||||
* Properties exported by the joystick driver. These properties are
|
||||
* recognized by the driver and will change its behavior when modified.
|
||||
*/
|
||||
|
||||
|
||||
/** Controls the verbosity of the driver */
|
||||
/* 8 bit (0..20) */
|
||||
#define JSTK_PROP_DEBUGLEVEL "Debug Level"
|
||||
|
||||
/** Number of buttons found on device */
|
||||
/* 8 bit (0..MAXBUTTONS), read-only */
|
||||
#define JSTK_PROP_NUMBUTTONS "Buttons"
|
||||
|
||||
/** Number of axes found on device */
|
||||
/* 8 bit (0..MAXAXES), read-only */
|
||||
#define JSTK_PROP_NUMAXES "Axes"
|
||||
|
||||
/** Generate pointer movement or button events */
|
||||
/* 8 bit (0 or 1) */
|
||||
#define JSTK_PROP_MOUSE_ENABLED "Generate Mouse Events"
|
||||
|
||||
/** Generate key events */
|
||||
/* 8 bit (0 or 1) */
|
||||
#define JSTK_PROP_KEYS_ENABLED "Generate Key Events"
|
||||
|
||||
/** Set the dead zone of each axis */
|
||||
/* 32 bit (0..30000), for each axis*/
|
||||
#define JSTK_PROP_AXIS_DEADZONE "Axis Deadzone"
|
||||
|
||||
/** Set axis type to none, byvalue, accelerated, absolute */
|
||||
/* 8 bit, one of enum _JOYSTICKTYPE @ jstk.h per axis*/
|
||||
#define JSTK_PROP_AXIS_TYPE "Axis Type"
|
||||
|
||||
/** Set mapping of axis to none, x, y, zx, zy, key */
|
||||
/* 8 bit, one of enum _JOYSTICKMAPPING @ jstk.h per axis */
|
||||
#define JSTK_PROP_AXIS_MAPPING "Axis Mapping"
|
||||
|
||||
/** Set movement factor of axis (default 1.0f) */
|
||||
/* TODO float, movement amplify value per axis */
|
||||
#define JSTK_PROP_AXIS_AMPLIFY "Axis Amplify"
|
||||
|
||||
/** Set KeySyms for axis in low position */
|
||||
/* TODO 16 bit */
|
||||
#define JSTK_PROP_AXIS_KEYS_LOW "Axis Keys (low)"
|
||||
|
||||
/** Set KeySyms for axis in high position */
|
||||
/* TODO 16 bit */
|
||||
#define JSTK_PROP_AXIS_KEYS_HIGH "Axis keys (high)"
|
||||
|
||||
/** Set the mapping of each button to
|
||||
none, x, y, zx, zy, button, key, speed_multiply,
|
||||
disable, disable_mouse, disable_keys */
|
||||
/* 8 bit, one of enum _JOYSTICKMAPPING @ jstk.h per button */
|
||||
#define JSTK_PROP_BUTTON_MAPPING "Button Mapping"
|
||||
|
||||
/** Set the logical button to report for this physical button */
|
||||
/* 8 bit (0..32), logical button number per button */
|
||||
#define JSTK_PROP_BUTTON_BUTTONNUMBER "Button Number"
|
||||
|
||||
/** Set amplify factor of button (default 1.0f) */
|
||||
/* TODO float, button amplify value per button */
|
||||
#define JSTK_PROP_BUTTON_AMPLIFY "Button Amplify"
|
||||
|
||||
/** Set KeySyms for button */
|
||||
/* TODO 16 bit, set keysyms for button. Format: (button keysym1 keysym2 keysym3 keysym4) */
|
||||
#define JSTK_PROP_BUTTON_KEYS "Button Keys"
|
||||
|
||||
|
||||
#endif /* _JOYSTICK_PROPERTIES_ */
|
||||
Reference in New Issue
Block a user