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
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * a choice of LGPL license versions is made available with the language indicating
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
b955672b950093ff7416d1269dd4d3b69983bd8fvboxsync * of the LGPL is applied is otherwise unspecified.
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.
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.
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
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * Defines the structure for a joystick input event which is
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * retrieved using the function XInputGetKeystroke
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync} XINPUT_BATTERY_INFORMATION, *PXINPUT_BATTERY_INFORMATION;
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncextern "C" {
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncDWORD WINAPI XInputSetState(DWORD, XINPUT_VIBRATION*);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncDWORD WINAPI XInputGetKeystroke(DWORD, DWORD, PXINPUT_KEYSTROKE);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncDWORD WINAPI XInputGetCapabilities(DWORD, DWORD, XINPUT_CAPABILITIES*);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncDWORD WINAPI XInputGetDSoundAudioDeviceGuids(DWORD, GUID*, GUID*);
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsyncDWORD WINAPI XInputGetBatteryInformation(DWORD, BYTE, XINPUT_BATTERY_INFORMATION*);
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_XINPUT_H */