#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "device/gamepad/gamepad_standard_mappings.h"
namespace device {
namespace {
const float kButtonAxisDeadzone = …;
GamepadButton ValueToButton(float value) { … }
}
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) { … }
}