chromium/device/gamepad/gamepad_standard_mappings.cc

// Copyright 2014 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/gamepad/gamepad_standard_mappings.h"

namespace device {

namespace {

const float kButtonAxisDeadzone =;

GamepadButton ValueToButton(float value) {}

}  // namespace

GamepadButton AxisToButton(float input) {}

GamepadButton AxisNegativeAsButton(float input) {}

GamepadButton AxisPositiveAsButton(float input) {}

GamepadButton ButtonFromButtonAndAxis(GamepadButton button, float axis) {}

GamepadButton NullButton() {}

void DpadFromAxis(Gamepad* mapped, float dir) {}

float RenormalizeAndClampAxis(float value, float min, float max) {}

void MapperSwitchPro(const Gamepad& input, Gamepad* mapped) {}

void MapperSwitchJoyCon(const Gamepad& input, Gamepad* mapped) {}

void MapperSwitchComposite(const Gamepad& input, Gamepad* mapped) {}

}  // namespace device