Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
InputSystem
InputBindingSystem
InputBindingQuery.cpp
Go to the documentation of this file.
1
#include "
InputBindingQuery.hpp
"
2
3
namespace
iv
4
{
5
6
InputBindingQuery::InputBindingQuery
(
Instance
* inst ) :
7
cm( inst, this,
"InputBindingQuery"
),
8
inst( inst ),
9
ies( inst->getSystemContainer()->getSystem<
InputBindingSystem
>() )
10
{
11
}
12
13
InputBindingQuery::~InputBindingQuery
()
14
{
15
}
16
17
Instance
*
InputBindingQuery::instance
()
const
18
{
19
return
this->inst;
20
}
21
22
bool
InputBindingQuery::IsBound
(
InputId
inputId,
Input::DeviceKey
device_key )
23
{
24
if
( !this->ies )
25
return
false
;
26
27
return
this->ies->
IsBound
( inputId, device_key.first, device_key.second );
28
}
29
30
bool
InputBindingQuery::IsHoverBound
(
InputId
inputId,
Input::DeviceKey
device_key )
31
{
32
if
( !this->ies )
33
return
false
;
34
35
auto
result = this->ies->
IsHoverBound
( inputId, device_key.first, device_key.second );
36
return
result;
37
}
38
39
}