1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Input/GamePadState.h

40 lines
982 B
C
Raw Normal View History

/********************************************************
* GamePadState.h *
* *
* XFX GamePadState definition file *
* Copyright <EFBFBD> XFX Team. All Rights Reserved *
********************************************************/
#ifndef _GAMEPADSTATE_
#define _GAMEPADSTATE_
#include "GamePadButtons.h"
#include "GamePadThumbSticks.h"
#include "GamePadTriggers.h"
namespace XFX
{
namespace Input
{
/// <summary>
/// Represents specific information about the state of an Xbox 360 Controller, including the current state of buttons
/// and sticks.
/// </summary>
struct GamePadState
{
GamePadButtons Buttons;
GamePadDPad DPad;
bool IsConnected;
GamePadThumbSticks ThumbSticks;
GamePadTriggers Triggers;
bool IsButtonDown(Buttons_t button);
bool IsButtonUp(Buttons_t button);
operator==(GamePadState other);
operator!=(GamePadState other);
};
}
}
#endif //_GAMEPADSTATE_