#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "device/vr/util/gamepad_builder.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/utf_string_conversions.h"
namespace device {
namespace {
constexpr double kThumbstickDeadzone = …;
GamepadHand MojoToGamepadHandedness(device::mojom::XRHandedness handedness) { … }
}
GamepadBuilder::GamepadBuilder(const std::string& gamepad_id,
GamepadMapping mapping,
device::mojom::XRHandedness handedness) { … }
GamepadBuilder::~GamepadBuilder() = default;
bool GamepadBuilder::IsValid() const { … }
std::optional<Gamepad> GamepadBuilder::GetGamepad() { … }
void GamepadBuilder::AddButton(const GamepadButton& button) { … }
void GamepadBuilder::AddButton(const ButtonData& data) { … }
void GamepadBuilder::AddAxis(double value, double deadzone) { … }
void GamepadBuilder::AddAxes(const ButtonData& data) { … }
void GamepadBuilder::AddPlaceholderButton() { … }
void GamepadBuilder::RemovePlaceholderButton() { … }
void GamepadBuilder::AddPlaceholderAxes() { … }
}