2023-05-16 21:56:55 +02:00
|
|
|
#ifndef HOLESOME_INPUT_IDENTITY_H
|
|
|
|
#define HOLESOME_INPUT_IDENTITY_H
|
|
|
|
|
|
|
|
#include "direction.h"
|
|
|
|
|
|
|
|
enum InputDeviceType
|
|
|
|
{
|
|
|
|
ALL,
|
|
|
|
KEYBOARD,
|
|
|
|
GAMEPAD
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
struct InputIdentity
|
|
|
|
{
|
|
|
|
Direction direction = Direction();
|
|
|
|
InputDeviceType deviceType = InputDeviceType::ALL;
|
|
|
|
unsigned int gamepadId = 0;
|
|
|
|
unsigned int inputOrder = 0;
|
|
|
|
bool isActive = true;
|
|
|
|
|
2023-05-17 14:13:39 +02:00
|
|
|
explicit InputIdentity(InputDeviceType type, unsigned int gamepad = 0) {
|
2023-05-16 21:56:55 +02:00
|
|
|
deviceType = type;
|
2023-05-17 14:13:39 +02:00
|
|
|
gamepadId = gamepad;
|
2023-05-16 21:56:55 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //HOLESOME_INPUT_IDENTITY_H
|