2011-09-16 06:13:33 +03:00
|
|
|
#ifndef _controller__hpp__included__
|
|
|
|
#define _controller__hpp__included__
|
|
|
|
|
2012-01-09 21:55:55 +02:00
|
|
|
#include "controllerframe.hpp"
|
2013-06-12 22:15:25 +03:00
|
|
|
#include "project.hpp"
|
|
|
|
|
|
|
|
struct project_info;
|
2011-09-16 06:13:33 +03:00
|
|
|
|
2013-01-04 20:41:11 +02:00
|
|
|
void reread_active_buttons();
|
2013-01-07 18:21:44 +02:00
|
|
|
void reinitialize_buttonmap();
|
2013-06-12 22:15:25 +03:00
|
|
|
void load_macros(controller_state& ctrlstate);
|
|
|
|
void load_project_macros(controller_state& ctrlstate, project_info& pinfo);
|
2013-08-07 22:06:38 +03:00
|
|
|
void cleanup_all_keys();
|
2013-10-06 22:13:52 +03:00
|
|
|
std::pair<int, int> controller_by_name(const std::string& name);
|
2013-06-12 22:15:25 +03:00
|
|
|
|
2012-01-11 23:07:31 +02:00
|
|
|
extern controller_state controls;
|
2013-01-07 20:29:03 +02:00
|
|
|
extern std::map<std::string, std::string> button_keys;
|
2011-11-05 00:37:32 +02:00
|
|
|
|
2013-06-12 22:15:25 +03:00
|
|
|
|
2011-09-17 00:06:20 +03:00
|
|
|
#endif
|