1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/Input/GamePadState.h
Halofreak1990 8f089dc2ab Added the current XFX directory tree.
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
2010-12-04 16:14:34 +00:00

40 lines
982 B
C++

/********************************************************
* GamePadState.h *
* *
* XFX GamePadState definition file *
* Copyright © 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_