This website works better with JavaScript.
Home
Explore
Help
Sign In
antkeeper
/
source
Watch
1
Star
0
Fork
0
Code
Issues
8
Pull Requests
0
Releases
0
Activity
Browse Source
Add brief for input::listener class
master
C. J. Howard
3 years ago
parent
2db97b5d53
commit
e94aef2a0b
2 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/input/listener.cpp
+3
-0
src/input/listener.hpp
+ 1
- 1
src/input/listener.cpp
View File
@ -33,7 +33,7 @@ listener::~listener()
set_event_dispatcher
(
nullptr
)
;
}
void
listener
:
:
set_event_dispatcher
(
:
:
event_dispatcher
*
event_dispatcher
)
void
listener
:
:
set_event_dispatcher
(
event_dispatcher
*
event_dispatcher
)
{
if
(
this
-
>
event_dispatcher
)
{
+ 3
- 0
src/input/listener.hpp
View File
@ -27,6 +27,9 @@
namespace
input
{
/**
*
Listens
for
all
types
of
input
events
.
*/
class
listener
:
public
event_handler
<
key_pressed_event
>
,
public
event_handler
<
mouse_moved_event
>
,
Write
Preview
Loading…
Cancel
Save