Added Input
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
#ifndef Events_GamepadAxis_h__
|
||||
#define Events_GamepadAxis_h__
|
||||
|
||||
#include "Core/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
|
||||
Reference in New Issue
Block a user