Play-/Source/ui_qt/unix/GamePadUtils.h

16 lines
285 B
C
Raw Permalink Normal View History

2018-11-26 13:02:15 -05:00
#pragma once
#include <libevdev.h>
#include <array>
2020-06-09 12:01:15 +09:00
#include <string>
2018-11-26 13:02:15 -05:00
#include "Types.h"
2018-11-28 18:37:05 -05:00
typedef std::array<uint32, 6> GamePadDeviceId;
2018-11-26 13:02:15 -05:00
class CGamePadUtils
{
public:
2018-11-28 18:37:05 -05:00
static GamePadDeviceId GetDeviceID(libevdev* dev);
static bool ParseMAC(GamePadDeviceId&, std::string const&);
2018-11-26 13:02:15 -05:00
};