2011-09-14 20:06:36 +03:00
|
|
|
#ifndef _command__hpp__included__
|
|
|
|
#define _command__hpp__included__
|
|
|
|
|
2014-05-24 11:39:36 +03:00
|
|
|
#include "library/command.hpp"
|
2014-06-03 03:52:13 +03:00
|
|
|
#include "library/threads.hpp"
|
2011-09-14 20:06:36 +03:00
|
|
|
#include <stdexcept>
|
|
|
|
#include <string>
|
2011-11-05 20:09:10 +02:00
|
|
|
#include <set>
|
2011-09-14 20:06:36 +03:00
|
|
|
|
2014-05-11 20:01:26 +03:00
|
|
|
extern command::set lsnes_cmds;
|
2011-09-14 20:06:36 +03:00
|
|
|
|
2014-05-24 11:39:36 +03:00
|
|
|
namespace keyboard
|
|
|
|
{
|
|
|
|
class mapper;
|
|
|
|
class invbind;
|
|
|
|
}
|
2014-05-18 00:38:58 +03:00
|
|
|
|
|
|
|
class alias_binds_manager
|
|
|
|
{
|
|
|
|
public:
|
2014-05-24 11:39:36 +03:00
|
|
|
alias_binds_manager(keyboard::mapper& _mapper, command::group& _command);
|
2014-05-18 00:38:58 +03:00
|
|
|
~alias_binds_manager();
|
|
|
|
void operator()();
|
|
|
|
private:
|
2014-05-24 11:39:36 +03:00
|
|
|
keyboard::mapper& mapper;
|
|
|
|
command::group& command;
|
2014-06-03 03:52:13 +03:00
|
|
|
threads::lock mut;
|
2014-05-18 00:38:58 +03:00
|
|
|
std::map<std::string, keyboard::invbind*> alias_binds;
|
|
|
|
};
|
2013-06-14 13:40:08 +03:00
|
|
|
|
2011-09-17 00:06:20 +03:00
|
|
|
#endif
|