#include "device/gamepad/udev_gamepad_linux.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "device/udev_linux/udev.h"
namespace device {
namespace {
bool DeviceIndexFromDevicePath(std::string_view path,
std::string_view prefix,
int* index) { … }
std::string_view ToStringView(const char* str) { … }
}
const char UdevGamepadLinux::kInputSubsystem[] = …;
const char UdevGamepadLinux::kHidrawSubsystem[] = …;
UdevGamepadLinux::UdevGamepadLinux(Type type,
int index,
std::string_view path,
std::string_view syspath_prefix)
: … { … }
std::unique_ptr<UdevGamepadLinux> UdevGamepadLinux::Create(udev_device* dev) { … }
}