chromium/device/vr/util/gamepad_builder.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#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) {}

}  // anonymous namespace

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() {}

}  // namespace device