29 lines
490 B
C
29 lines
490 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) {
|
||
|
deviceType = type;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif //HOLESOME_INPUT_IDENTITY_H
|