holesome/src/game/input/input_identity.h
2023-05-17 14:13:39 +02:00

29 lines
545 B
C

#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;
explicit InputIdentity(InputDeviceType type, unsigned int gamepad = 0) {
deviceType = type;
gamepadId = gamepad;
};
};
#endif //HOLESOME_INPUT_IDENTITY_H