dual_sense_hid namespace

Dual Sense support library.

Classes

struct Calibration
Calibration data for accelerometer & gyroscope.
struct DeviceInfo
Enumerated info of connected gamepad.
class Gamepad
Gamepad handle used to poll state from device.
struct State
State of analogs, buttons, etc. of gamepad.

Enums

enum class ConnectionType: uint8_t { USB, BLUETOOTH }
method of connection

Functions

auto enumerate() -> std::vector<DeviceInfo>
Enumerate connected gamepads.

Variables

static unsigned long VENDOR_ID constexpr
static unsigned long PRODUCT_ID constexpr

Enum documentation

enum class dual_sense_hid::ConnectionType: uint8_t

method of connection

Enumerators
USB

USB connection

BLUETOOTH

Bluetooth connection

Function documentation

std::vector<DeviceInfo> dual_sense_hid::enumerate()

Enumerate connected gamepads.

Returns A vector of info for connected devices

Variable documentation

static unsigned long dual_sense_hid::VENDOR_ID constexpr

Vendor ID of DualSense gamepad

static unsigned long dual_sense_hid::PRODUCT_ID constexpr

Product ID of DualSense gamepad