|
ReXGlue SDK
|
XInput structures and constants and the XAM error codes. More...
#include <string>#include <rex/assert.h>#include <rex/types.h>#include <rex/result.h>#include <rex/kernel/types/status.h>Go to the source code of this file.
Classes | |
| struct | rex::xam::X_INPUT_GAMEPAD |
| struct | rex::xam::X_INPUT_STATE |
| struct | rex::xam::X_INPUT_VIBRATION |
| struct | rex::xam::X_INPUT_CAPABILITIES |
| struct | rex::xam::X_INPUT_KEYSTROKE |
Namespaces | |
| namespace | rex |
Enumerations | |
| enum | rex::xam::X_INPUT_CAPS : u8 { rex::xam::kXInputCapsFFBSupported = 0x0001 , rex::xam::kXInputCapsWireless = 0x0002 , rex::xam::kXInputCapsVoiceSupported = 0x0004 , rex::xam::kXInputCapsPMDSupported = 0x0008 , rex::xam::kXInputCapsNoNavigation = 0x0010 } |
| enum | rex::xam::X_INPUT_DEVTYPE : u8 { rex::xam::kXInputDevTypeGamepad = 0x00000001 , rex::xam::kXInputDevTypeKeyboard = 0x00000002 } |
| enum | rex::xam::X_INPUT_DEVSUBTYPE : u8 { rex::xam::kXInputDevSubtypeUSBKeyboard = 0x00000000 , rex::xam::kXInputDevSubtypeGamepad = 0x00000001 , kXInputDevSubtypeWheel = 0x00000002 , kXInputDevSubtypeArcadeStick = 0x00000003 , kXInputDevSubtypeFlightStick = 0x00000004 , kXInputDevSubtypeDancePad = 0x00000005 , kXInputDevSubtypeGuitar = 0x00000006 , rex::xam::kXInputDevSubtypeGuitarAlternate = 0x00000007 , kXInputDevSubtypeDrumKit = 0x00000008 , rex::xam::kXInputDevSubtypeGuitarBass = 0x0000000B , rex::xam::kXInputDevSubtypeArcadePad = 0x00000013 } |
| enum | rex::xam::X_INPUT_FLAG { rex::xam::kXInputFlagGamepad = 0x00000001 , rex::xam::kXInputFlagKeyboard = 0x00000002 , rex::xam::kXInputFlagUnknown = 0x00000004 , rex::xam::kXInputFlagUnknown2 = 0x00000008 , rex::xam::kXInputFlagMic = 0x00000020 , rex::xam::kXInputFlagAnyDevice = 0x000000FF , rex::xam::kXInputFlagAnyUser = 1 << 30 } |
| enum | X_INPUT_GAMEPAD_BUTTON : u16 { kXInputGamepadDPadUp = 0x0001 , kXInputGamepadDPadDown = 0x0002 , kXInputGamepadDPadLeft = 0x0004 , kXInputGamepadDPadRight = 0x0008 , kXInputGamepadStart = 0x0010 , kXInputGamepadBack = 0x0020 , kXInputGamepadLeftThumb = 0x0040 , kXInputGamepadRightThumb = 0x0080 , kXInputGamepadLeftShoulder = 0x0100 , kXInputGamepadRightShoulder = 0x0200 , kXInputGamepadGuide = 0x0400 , kXInputGamepadA = 0x1000 , kXInputGamepadB = 0x2000 , kXInputGamepadX = 0x4000 , kXInputGamepadY = 0x8000 } |
| enum | rex::xam::X_INPUT_KEYSTROKE_FLAGS : u16 { rex::xam::kXInputKeystrokeKeyDown = 0x0001 , rex::xam::kXInputKeystrokeKeyUp = 0x0002 , rex::xam::kXInputKeystrokeRepeat = 0x0004 , rex::xam::kXInputKeystrokeShift = 0x0008 , rex::xam::kXInputKeystrokeCtrl = 0x0010 , rex::xam::kXInputKeystrokeAlt = 0x0020 , rex::xam::kXInputKeystrokeValidUnicode = 0x1000 } |
| enum class | rex::xam::HIDError : u8 { kNotConnected = 1 , kEmpty = 2 , kBadArguments = 3 , kFailed = 4 } |
Functions | |
| rex::Error | rex::xam::BuildError (HIDError code, std::string message) |
| HIDError | rex::xam::CodeOf (const rex::Error &error) |
| HIDError | rex::xam::ToHIDError (rex::kernel::X_RESULT result) |
| rex::kernel::X_RESULT | rex::xam::ToXResult (HIDError code) |
Variables | |
| constexpr i32 | rex::xam::kXInputGamepadLeftThumbDeadzone = 7849 |
| constexpr i32 | rex::xam::kXInputGamepadRightThumbDeadzone = 8689 |
| constexpr u8 | rex::xam::kXInputGamepadTriggerThreshold = 30 |
XInput structures and constants and the XAM error codes.
Xenia : Xbox 360 Emulator Research Project *
Copyright 2015 Ben Vanik. All rights reserved. * Released under the BSD license - see LICENSE in the root for more details. *
|
strong |
| enum rex::xam::X_INPUT_CAPS : u8 |
| Enumerator | |
|---|---|
| kXInputCapsFFBSupported | XINPUT_CAPS_FFB_SUPPORTED. The device supports force feedback. |
| kXInputCapsWireless | XINPUT_CAPS_WIRELESS. The device is wireless. |
| kXInputCapsVoiceSupported | XINPUT_CAPS_VOICE_SUPPORTED. The device has an integrated voice device. |
| kXInputCapsPMDSupported | XINPUT_CAPS_PMD_SUPPORTED. The device supports plugin module devices. |
| kXInputCapsNoNavigation | Capability bit of X_INPUT_CAPABILITIES::flags. No code reads it. |
| enum rex::xam::X_INPUT_DEVSUBTYPE : u8 |
| enum rex::xam::X_INPUT_DEVTYPE : u8 |
| Enumerator | |
|---|---|
| kXInputDevTypeGamepad | The device is a game controller. The HID drivers report it in X_INPUT_CAPABILITIES::type. |
| kXInputDevTypeKeyboard | The device is a keyboard. The keyboard driver reports it in X_INPUT_CAPABILITIES::type. |
| enum rex::xam::X_INPUT_KEYSTROKE_FLAGS : u16 |
|
inlinenodiscard |
Builds a rex::Error that carries a HID code.
|
inlinenodiscard |
Returns the HID code of an error.
| error | An error built by BuildError. |
|
inlinenodiscard |
Returns the HID code a Win32 input result stands for. NotConnected, Empty and BadArguments map to their codes and any other result gives Failed.
| result | A failing Win32 code. |
|
inlinenodiscard |
Returns the Win32 code the XAM input exports report for a HID code.
|
constexpr |
XInput's published thresholds.