Skip to content

XertDev/dual_sense_hid

Repository files navigation

Unofficial Dual Sense Support (WIP)

Ubuntu Nix build Documentation

Functionality

Reading from pad

Support for reading state from DualSense pad written in c++.

Example

    const auto enumerated = dual_sense::enumerate();
    const dual_sense::Gamepad gamepad(enumerated.front());
    const auto state = gamepad.poll();
	
    std::cout << "Charging: " << std::boolalpha << state.battery.charging << std::endl;

Pushing state to pad

Support for manipulation of lights settings on pad.

Example

    const auto enumerated = dual_sense::enumerate();
    const dual_sense::Gamepad gamepad(enumerated.front());
	
	auto& lights = gamepad.lights();
    lights.set_player_indicator(dual_sense_hid::Gamepad::Lights::PlayerIndicator::PLAYER_FOUR);
	gamepad.push_state();

License

MIT © Xert