New InputBag, not used yet.

This commit is contained in:
King_DuckZ 2014-02-23 19:32:47 +01:00
parent 68ebc16422
commit 383ea0c17b
4 changed files with 142 additions and 0 deletions

32
src/inputbag.hpp Normal file
View file

@ -0,0 +1,32 @@
#ifndef idF4E67FC292A5480DA4305B806170F520
#define idF4E67FC292A5480DA4305B806170F520
#include <memory>
namespace cloonel {
struct Key;
class InputBag {
public:
enum ActionStateType {
ActionState_Released,
ActionState_Pressed,
ActionState_JustPressed,
ActionState_JustReleased
};
InputBag ( void );
~InputBag ( void ) noexcept;
void AddAction ( int parAction, const Key& parKey, std::string&& parName );
ActionStateType ActionState ( int parAction ) const;
void Clear ( void );
private:
struct LocalData;
const std::unique_ptr<LocalData> m_localdata;
};
} //namespace cloonel
#endif