xinput.h revision af062818b47340eef15700d2f0211576ba3506ee
af062818b47340eef15700d2f0211576ba3506eevboxsync * The Wine project - Xinput Joystick Library
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2008 Andrew Fenn
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync * Bitmasks for the joysticks buttons, determines what has
af062818b47340eef15700d2f0211576ba3506eevboxsync * been pressed on the joystick, these need to be mapped
af062818b47340eef15700d2f0211576ba3506eevboxsync * to whatever device you're using instead of an xbox 360
af062818b47340eef15700d2f0211576ba3506eevboxsync * Defines the flags used to determine if the user is pushing
af062818b47340eef15700d2f0211576ba3506eevboxsync * down on a button, not holding a button, etc
af062818b47340eef15700d2f0211576ba3506eevboxsync * Defines the codes which are returned by XInputGetKeystroke
af062818b47340eef15700d2f0211576ba3506eevboxsync * Deadzones are for analogue joystick controls on the joypad
af062818b47340eef15700d2f0211576ba3506eevboxsync * which determine when input should be assumed to be in the
af062818b47340eef15700d2f0211576ba3506eevboxsync * middle of the pad. This is a threshold to stop a joypad
af062818b47340eef15700d2f0211576ba3506eevboxsync * controlling the game when the player isn't touching the
af062818b47340eef15700d2f0211576ba3506eevboxsync * controls.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Defines what type of abilities the type of joystick has
af062818b47340eef15700d2f0211576ba3506eevboxsync * DEVTYPE_GAMEPAD is avaliable for all joysticks, however
af062818b47340eef15700d2f0211576ba3506eevboxsync * there may be more specfic identifiers for other joysticks
af062818b47340eef15700d2f0211576ba3506eevboxsync * which are being used.
af062818b47340eef15700d2f0211576ba3506eevboxsync * These are used with the XInputGetCapabilities function to
af062818b47340eef15700d2f0211576ba3506eevboxsync * determine the abilities to the joystick which has been
af062818b47340eef15700d2f0211576ba3506eevboxsync * plugged in.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Defines the status of the battery if one is used in the
af062818b47340eef15700d2f0211576ba3506eevboxsync * attached joystick. The first two define if the joystick
af062818b47340eef15700d2f0211576ba3506eevboxsync * supports a battery. Disconnected means that the joystick
af062818b47340eef15700d2f0211576ba3506eevboxsync * isn't connected. Wired shows that the joystick is a wired
af062818b47340eef15700d2f0211576ba3506eevboxsync * joystick.
af062818b47340eef15700d2f0211576ba3506eevboxsync * How many joysticks can be used with this library. Games that
af062818b47340eef15700d2f0211576ba3506eevboxsync * use the xinput library will not go over this number.
af062818b47340eef15700d2f0211576ba3506eevboxsync * Defines the structure of an xbox 360 joystick.
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _XINPUT_GAMEPAD {
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _XINPUT_STATE {
af062818b47340eef15700d2f0211576ba3506eevboxsync * Defines the structure of how much vibration is set on both the
af062818b47340eef15700d2f0211576ba3506eevboxsync * right and left motors in a joystick. If you're not using a 360
af062818b47340eef15700d2f0211576ba3506eevboxsync * joystick you will have to map these to your device.
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _XINPUT_VIBRATION {
af062818b47340eef15700d2f0211576ba3506eevboxsync * Defines the structure for what kind of abilities the joystick has
af062818b47340eef15700d2f0211576ba3506eevboxsync * such abilites are things such as if the joystick has the ability
af062818b47340eef15700d2f0211576ba3506eevboxsync * to send and receive audio, if the joystick is infact a driving
af062818b47340eef15700d2f0211576ba3506eevboxsync * wheel or perhaps if the joystick is some kind of dance pad or
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _XINPUT_CAPABILITIES {
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_XINPUT_H */