mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
WARNING!!! This revision cannot compile correctly. It is updated to reflect the many changes within the XFX project.
40 lines
982 B
C++
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_
|