DInputControllerInterface: Support diagonals in hat

This commit is contained in:
Connor McLaughlin
2021-03-25 13:50:13 +10:00
parent 03905b8f2e
commit f1fb7383b7
2 changed files with 25 additions and 18 deletions

View File

@ -79,7 +79,7 @@ private:
void AddDevices();
bool AddDevice(ControllerData& cd, const char* name);
static u32 GetHatDirection(DWORD hat);
static std::array<bool, NUM_HAT_DIRECTIONS> GetHatButtons(DWORD hat);
void CheckForStateChanges(u32 index, const DIJOYSTATE& new_state);