Browse Source

Add brief for input::listener class

master
C. J. Howard 3 years ago
parent
commit
e94aef2a0b
2 changed files with 4 additions and 1 deletions
  1. +1
    -1
      src/input/listener.cpp
  2. +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>,

Loading…
Cancel
Save