2013-06-02 14:32:43 +02:00
|
|
|
/*****************************************************************************
|
|
|
|
* GamePadButtons.h *
|
|
|
|
* *
|
2013-07-12 21:30:13 +02:00
|
|
|
* XFX::Input::GamePadButtons structure definition file *
|
2013-06-02 14:32:43 +02:00
|
|
|
* Copyright (c) XFX Team. All Rights Reserved *
|
|
|
|
*****************************************************************************/
|
2013-05-05 18:18:41 +02:00
|
|
|
#ifndef _XFX_INPUT_GAMEPADBUTTONS_
|
|
|
|
#define _XFX_INPUT_GAMEPADBUTTONS_
|
|
|
|
|
|
|
|
#include "Enums.h"
|
|
|
|
#include <System/Object.h>
|
2014-04-20 13:19:50 +02:00
|
|
|
#include <System/Types.h>
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
using namespace System;
|
|
|
|
|
|
|
|
namespace XFX
|
|
|
|
{
|
|
|
|
namespace Input
|
|
|
|
{
|
2013-07-12 21:30:13 +02:00
|
|
|
/**
|
|
|
|
* Identifies whether the buttons on an Xbox Controller are pressed or released.
|
|
|
|
*/
|
2013-05-05 18:18:41 +02:00
|
|
|
struct GamePadButtons : Object
|
|
|
|
{
|
|
|
|
const ButtonState_t A;
|
|
|
|
const ButtonState_t B;
|
|
|
|
const ButtonState_t Back;
|
|
|
|
const ButtonState_t Black;
|
|
|
|
const ButtonState_t LeftStick;
|
|
|
|
const ButtonState_t RightStick;
|
|
|
|
const ButtonState_t Start;
|
|
|
|
const ButtonState_t White;
|
|
|
|
const ButtonState_t X;
|
|
|
|
const ButtonState_t Y;
|
|
|
|
|
2014-04-20 13:19:50 +02:00
|
|
|
GamePadButtons(const uint /* Buttons_t */ buttons);
|
2013-05-05 18:18:41 +02:00
|
|
|
GamePadButtons();
|
|
|
|
GamePadButtons(const GamePadButtons &obj);
|
|
|
|
|
2013-05-31 15:58:00 +02:00
|
|
|
bool Equals(Object const * const obj) const;
|
2013-05-05 18:18:41 +02:00
|
|
|
bool Equals(const GamePadButtons obj) const;
|
|
|
|
int GetHashCode() const;
|
2013-07-12 21:30:13 +02:00
|
|
|
static const Type& GetType();
|
2013-07-11 20:00:07 +02:00
|
|
|
const String ToString() const;
|
2013-05-05 18:18:41 +02:00
|
|
|
|
|
|
|
bool operator !=(const GamePadButtons& right) const;
|
|
|
|
bool operator ==(const GamePadButtons& right) const;
|
|
|
|
|
|
|
|
inline GamePadButtons operator=(const GamePadButtons& right)
|
|
|
|
{
|
|
|
|
return (right == *this) ? *this : GamePadButtons(right);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif //_XFX_INPUT_GAMEPADBUTTONS_
|