趣味で作ってるロボット用ソフトウェア
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Files
Functions
Enumerations
Enumerator
Friends
Pages
lib
gui
Key_event.h
Go to the documentation of this file.
1
#ifndef HRK_KEY_EVENT_H
2
#define HRK_KEY_EVENT_H
3
9
#include <memory>
10
#include <SDL.h>
11
#include "
Event.h
"
12
13
14
namespace
hrk
15
{
16
class
Key_event
:
public
Event
17
{
18
friend
class
Input_events
;
19
20
public
:
21
typedef
enum
{
22
Pressed = SDL_PRESSED,
23
Released = SDL_RELEASED,
24
} state_t;
25
26
typedef
enum
{
27
KMOD_ANY = 0xffff,
28
} mod_t;
29
30
explicit
Key_event
(SDLKey key,
31
state_t state = Pressed,
int
mod = KMOD_NONE);
32
~
Key_event
(
void
);
33
34
bool
is_activated(
void
)
const
;
35
void
set_activated(
bool
activate);
36
37
private
:
38
void
check_activated(SDLKey key, state_t state,
int
mod);
39
40
Key_event
(
void
);
41
Key_event
(
const
Key_event
& rhs);
42
Key_event
& operator = (
const
Key_event
& rhs);
43
44
struct
pImpl;
45
std::auto_ptr<pImpl> pimpl;
46
};
47
}
48
49
#endif
hrk::Key_event
Definition:
Key_event.h:16
Event.h
イベントの管理
hrk::Event
Definition:
Event.h:11
hrk::Input_events
Definition:
Input_events.h:21
Generated on Tue Oct 24 2017 04:56:04 for 趣味で作ってるロボット用ソフトウェア by
1.8.6