Toggle navigation
ivorium
iv_components
Example project
GitHub
Main Page
Modules
Classes
Files
File List
File Members
ivorium_systems
InputSystem
InputBindingSystem
InputBinder.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include "
InputId.hpp
"
4
5
#include <
ivorium_core/ivorium_core.hpp
>
6
7
namespace
iv
8
{
9
10
class
Instance;
11
class
InputBindingSystem;
12
13
class
InputBinder
14
{
15
public
:
16
ClientMarker
cm
;
17
InputBinder
(
Instance
* inst );
18
Instance
*
instance
();
19
20
void
BindKey
(
InputId
inputId,
Input::Key
key,
int
device_id = -1 );
21
void
UnbindKey
(
InputId
inputId,
Input::Key
key,
int
device_id = -1 );
22
23
void
BindHoverKey
(
InputId
inputId,
Input::Key
key,
int
device_id = -1 );
24
void
UnbindHoverKey
(
InputId
inputId,
Input::Key
key,
int
device_id = -1 );
25
26
private
:
27
Instance
* inst;
28
InputBindingSystem
* ies;
29
};
30
31
}