UGDK
0.5.0
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
joystickstatus.h
Go to the documentation of this file.
1
#ifndef UGDK_INPUT_JOYSTICKSTATUS_H_
2
#define UGDK_INPUT_JOYSTICKSTATUS_H_
3
4
#include <
ugdk/structure/types.h
>
5
6
namespace
ugdk
{
7
namespace
input {
8
9
class
AxisStatus
{
10
public
:
11
AxisStatus
(
int16
raw
);
12
13
int16
raw
()
const
;
14
int16
MaximumValue
()
const
;
15
int16
MinimumValue
()
const
;
16
double
Percentage
()
const
;
17
18
private
:
19
int16
raw_;
20
};
21
22
class
HatStatus
{
23
public
:
24
HatStatus
(
int
raw
);
25
26
int
raw
()
const
;
27
bool
IsCentered
()
const
;
28
bool
IsUp
()
const
;
29
bool
IsRight
()
const
;
30
bool
IsDown
()
const
;
31
bool
IsLeft
()
const
;
32
bool
IsRightUp
()
const
;
33
bool
IsRightDown
()
const
;
34
bool
IsLeftUp
()
const
;
35
bool
IsLeftDown
()
const
;
36
37
bool
HasUp
()
const
;
38
bool
HasRight
()
const
;
39
bool
HasDown
()
const
;
40
bool
HasLeft
()
const
;
41
42
private
:
43
int
raw_;
44
};
45
46
}
// namespace input
47
}
// namespace ugdk
48
49
#endif // UGDK_INPUT_JOYSTICKSTATUS_H_
types.h
ugdk::input::HatStatus::IsLeftUp
bool IsLeftUp() const
ugdk::input::HatStatus
Definition:
joystickstatus.h:22
ugdk
Definition:
animation.h:11
ugdk::input::AxisStatus::MaximumValue
int16 MaximumValue() const
ugdk::input::AxisStatus::MinimumValue
int16 MinimumValue() const
ugdk::input::AxisStatus::raw
int16 raw() const
ugdk::input::HatStatus::raw
int raw() const
ugdk::input::HatStatus::IsLeft
bool IsLeft() const
ugdk::input::HatStatus::IsRightDown
bool IsRightDown() const
ugdk::input::AxisStatus::Percentage
double Percentage() const
ugdk::input::HatStatus::HasRight
bool HasRight() const
ugdk::input::AxisStatus
Definition:
joystickstatus.h:9
ugdk::input::HatStatus::HatStatus
HatStatus(int raw)
ugdk::int16
int16_t int16
Definition:
types.h:17
ugdk::input::HatStatus::IsUp
bool IsUp() const
ugdk::input::HatStatus::HasDown
bool HasDown() const
ugdk::input::HatStatus::HasLeft
bool HasLeft() const
ugdk::input::HatStatus::IsDown
bool IsDown() const
ugdk::input::HatStatus::IsCentered
bool IsCentered() const
ugdk::input::HatStatus::IsLeftDown
bool IsLeftDown() const
ugdk::input::HatStatus::HasUp
bool HasUp() const
ugdk::input::AxisStatus::AxisStatus
AxisStatus(int16 raw)
ugdk::input::HatStatus::IsRightUp
bool IsRightUp() const
ugdk::input::HatStatus::IsRight
bool IsRight() const
modules
ugdk-core
include
ugdk
input
joystickstatus.h
Generated on Sun Dec 6 2015 00:40:24 for UGDK by
1.8.8