InputBinder.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "InputId.hpp"
4 
6 
7 namespace iv
8 {
9 
10 class Instance;
11 class InputBindingSystem;
12 
14 {
15 public:
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 }