mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
49 lines
1.4 KiB
C
49 lines
1.4 KiB
C
|
/*****************************************************************************
|
||
|
* GamePadThumbSticks.h *
|
||
|
* *
|
||
|
* XFX::Input::GamePadThumbSticks structure definition file *
|
||
|
* Copyright (c) XFX Team. All Rights Reserved *
|
||
|
*****************************************************************************/
|
||
|
#ifndef _XFX_INPUT_GAMEPADTHUMBSTICKS_
|
||
|
#define _XFX_INPUT_GAMEPADTHUMBSTICKS_
|
||
|
|
||
|
#include "Enums.h"
|
||
|
#include <Vector2.h>
|
||
|
|
||
|
using namespace System;
|
||
|
|
||
|
namespace XFX
|
||
|
{
|
||
|
namespace Input
|
||
|
{
|
||
|
/**
|
||
|
* Structure that represents the position of left and right sticks (thumbsticks) on an Xbox Controller.
|
||
|
*/
|
||
|
struct GamePadThumbSticks : Object
|
||
|
{
|
||
|
const Vector2 Left;
|
||
|
const Vector2 Right;
|
||
|
|
||
|
GamePadThumbSticks(const Vector2 leftThumbstick, const Vector2 rightThumbstick);
|
||
|
GamePadThumbSticks();
|
||
|
GamePadThumbSticks(const GamePadThumbSticks &obj);
|
||
|
|
||
|
bool Equals(Object const * const obj) const;
|
||
|
bool Equals(const GamePadThumbSticks obj) const;
|
||
|
int GetHashCode() const;
|
||
|
static const Type& GetType();
|
||
|
const String ToString() const;
|
||
|
|
||
|
bool operator!=(const GamePadThumbSticks& right) const;
|
||
|
bool operator==(const GamePadThumbSticks& right) const;
|
||
|
|
||
|
inline GamePadThumbSticks operator=(const GamePadThumbSticks& right)
|
||
|
{
|
||
|
return (right == *this) ? *this : GamePadThumbSticks(right);
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif //_XFX_INPUT_GAMEPADTHUMBSTICKS_
|