Gainput
v1.0.0
lib
include
gainput
GainputInputDeltaState.h
1
2
#ifndef GAINPUTINPUTDELTASTATE_H_
3
#define GAINPUTINPUTDELTASTATE_H_
4
5
namespace
gainput
6
{
7
9
class
GAINPUT_LIBEXPORT
InputDeltaState
10
{
11
public
:
12
InputDeltaState
(
Allocator
& allocator);
13
15
21
void
AddChange(
DeviceId
device,
DeviceButtonId
deviceButton,
bool
oldValue,
bool
newValue);
23
29
void
AddChange(
DeviceId
device,
DeviceButtonId
deviceButton,
float
oldValue,
float
newValue);
30
32
void
Clear();
33
35
38
void
NotifyListeners(
Array<InputListener*>
& listeners)
const
;
39
40
private
:
41
struct
Change
42
{
43
DeviceId
device;
44
DeviceButtonId
deviceButton;
45
ButtonType
type;
46
union
47
{
48
bool
b;
49
float
f;
50
} oldValue, newValue;
51
};
52
53
Array<Change>
changes_;
54
};
55
56
}
57
58
#endif
59
gainput::Array
A std::vector-like data container for POD-types.
Definition:
GainputContainers.h:96
gainput::ButtonType
ButtonType
Type of an input device button.
Definition:
GainputInputDevice.h:10
gainput::InputDeltaState
Stores a list of input state changes.
Definition:
GainputInputDeltaState.h:9
gainput::DeviceId
unsigned int DeviceId
ID of an input device.
Definition:
gainput.h:107
gainput::DeviceButtonId
unsigned int DeviceButtonId
ID of a specific button unique to an input device.
Definition:
gainput.h:109
gainput::Allocator
Interface used to pass custom allocators to the library.
Definition:
GainputAllocator.h:16
gainput
Contains all Gainput related classes, types, and functions.
Definition:
gainput.h:103
Generated on Wed Sep 6 2017 20:47:59 for Gainput by
1.8.13