Support for reading state from DualSense pad written in c++.
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;
Support for manipulation of lights settings on pad.
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();
MIT © Xert