Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
actionkeymapping.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "property/property.h"
6 #include "input/inputmapping.h"
7 
8 
10 public:
11  ActionKeyMapping(std::string primary, std::string secondary, std::string name, bool toggleAction = false);
12 
13  InputMapping mapping(InputClass inputClass);
14  void setMapping(InputClass inputClass, InputMapping mapping);
15 
16  const std::string& name();
17  const std::string& mappingName(InputClass inputClass);
18  bool toggleAction();
19  bool toggleStatus();
20 
21  void setToggleStatus(bool status);
22 
23 protected:
24  Property<InputMapping> m_primaryMapping;
25  Property<InputMapping> m_secondaryMapping;
26  bool m_toggleAction;
27  bool m_toggleStatus;
28  std::string m_name;
29 };
30 
32  int buttonCnt, axisCnt;
33  const unsigned char *buttonValues;
34  const float *axisValues;
35 
37 };
Definition: inputmapping.h:16
Definition: actionkeymapping.h:31
Definition: actionkeymapping.h:9