Files
axyz/include/Engine/Core/EGamepadAxis.h
T
2015-11-30 17:02:24 +01:00

37 lines
499 B
C++

#ifndef Events_GamepadAxis_h__
#define Events_GamepadAxis_h__
#include "EventBroker.h"
namespace Gamepad
{
/** Gamepad axis type */
enum class Axis
{
LeftX,
LeftY,
RightX,
RightY,
LeftTrigger,
RightTrigger,
LAST = RightTrigger
};
}
namespace Events
{
/** Thrown when a gamepad axis changes value */
struct GamepadAxis : Event
{
/** ID of the gamepad. */
int GamepadID;
/** The axis type. */
Gamepad::Axis Axis;
/** The new value of the axis. */
float Value;
};
}
#endif