2011-09-13 17:50:18 +03:00
|
|
|
#ifndef _keymapper__hpp__included__
|
|
|
|
#define _keymapper__hpp__included__
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <sstream>
|
|
|
|
#include <stdexcept>
|
|
|
|
#include <list>
|
|
|
|
#include <set>
|
2012-01-17 16:24:50 +02:00
|
|
|
#include <map>
|
2011-09-13 17:50:18 +03:00
|
|
|
#include <iostream>
|
|
|
|
#include "misc.hpp"
|
2012-12-14 17:52:03 +02:00
|
|
|
#include "library/keyboard.hpp"
|
2012-12-22 16:16:46 +02:00
|
|
|
#include "library/keymapper.hpp"
|
2011-09-13 17:50:18 +03:00
|
|
|
|
2011-09-18 01:26:45 +03:00
|
|
|
/**
|
2012-12-14 17:52:03 +02:00
|
|
|
* Our keyboard
|
2011-09-26 19:02:43 +03:00
|
|
|
*/
|
2012-12-14 17:52:03 +02:00
|
|
|
extern keyboard lsnes_kbd;
|
2012-02-20 21:15:51 +02:00
|
|
|
/**
|
2012-12-22 16:16:46 +02:00
|
|
|
* Our key mapper.
|
2012-02-20 21:15:51 +02:00
|
|
|
*/
|
2012-12-22 16:16:46 +02:00
|
|
|
extern keyboard_mapper lsnes_mapper;
|
2012-02-20 21:15:51 +02:00
|
|
|
|
2012-12-16 20:45:16 +02:00
|
|
|
/**
|
|
|
|
* Translate axis calibration into mode name.
|
|
|
|
*/
|
|
|
|
std::string calibration_to_mode(keyboard_axis_calibration p);
|
|
|
|
|
2011-09-13 17:50:18 +03:00
|
|
|
#endif
|