Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
InputSystem
InputBindingSystem
InputBindingListener.cpp
Go to the documentation of this file.
1
#include "
InputBindingListener.hpp
"
2
#include "
InputBindingSystem.hpp
"
3
4
namespace
iv
5
{
6
7
InputBindingListener::InputBindingListener
(
Instance
* inst ) :
8
inst( inst ),
9
ibs( inst->getSystem<
InputBindingSystem
>() )
10
{
11
if
( !this->ibs )
12
return
;
13
14
this->ibs->
register_listener
(
this
);
15
}
16
17
InputBindingListener::~InputBindingListener
()
18
{
19
if
( !this->ibs )
20
return
;
21
22
this->ibs->
unregister_listener
(
this
);
23
}
24
25
Instance
*
InputBindingListener::instance
()
const
26
{
27
return
this->inst;
28
}
29
30
}