blip
0.1
Event.hpp
Go to the documentation of this file.
1
#ifndef __blip_Event_hpp
2
#define __blip_Event_hpp
3
4
#include <
blip/Blip.hpp
>
5
6
namespace
blip
{
7
12
class
Event
13
{
14
public
:
15
17
enum
Type
{
Type_Key
,
18
Type_Motion
,
19
Type_Sensor
,
20
Type_Timer
};
21
23
virtual
~Event
();
24
26
inline
Type
getType
()
const
27
{
return
(_type); }
28
30
virtual
time_ms_t
getEventTime
()
const
= 0;
31
32
protected
:
33
35
Event
(
Type
type);
36
37
private
:
38
39
Type
_type;
40
};
41
42
}
// namespace blip
43
44
#endif // __blip_Event_hpp
blip::Event::Event
Event(Type type)
Constructor.
Definition:
Event.cpp:8
blip::Event
An abstract base class for all application events.
Definition:
Event.hpp:12
blip::Event::Type_Timer
Timer events.
Definition:
Event.hpp:20
blip::Event::Type_Key
Key input events.
Definition:
Event.hpp:17
blip::Event::Type_Sensor
Sensor events.
Definition:
Event.hpp:19
blip::Event::Type
Type
Event types.
Definition:
Event.hpp:17
blip
WAV file format details at: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/.
Definition:
AccelerometerSensorEvent.cpp:3
blip::Event::Type_Motion
Motion input events.
Definition:
Event.hpp:18
blip::Event::~Event
virtual ~Event()
Destructor.
Definition:
Event.cpp:16
blip::Event::getType
Type getType() const
Get the event type.
Definition:
Event.hpp:26
Blip.hpp
blip::Event::getEventTime
virtual time_ms_t getEventTime() const =0
Get the time at which this event occurred.
lib
blip
Event.hpp
Generated by
1.8.13