1 #include "core/command.hpp"
2 #include "core/dispatch.hpp"
3 #include "library/globalwrap.hpp"
4 #include "core/keymapper.hpp"
5 #include "core/memorymanip.hpp"
6 #include "core/misc.hpp"
7 #include "core/window.hpp"
9 #include "library/string.hpp"
20 keyboard_mapper
lsnes_mapper(lsnes_kbd
, lsnes_cmd
);
22 std::string
calibration_to_mode(keyboard_axis_calibration p
)
24 if(p
.mode
== -1) return "disabled";
25 if(p
.mode
== 1 && p
.esign_b
== 1) return "axis";
26 if(p
.mode
== 1 && p
.esign_b
== -1) return "axis-inverse";
27 if(p
.mode
== 0 && p
.esign_a
== -1 && p
.esign_b
== 0) return "pressure-0";
28 if(p
.mode
== 0 && p
.esign_a
== -1 && p
.esign_b
== 1) return "pressure-+";
29 if(p
.mode
== 0 && p
.esign_a
== 0 && p
.esign_b
== -1) return "pressure0-";
30 if(p
.mode
== 0 && p
.esign_a
== 0 && p
.esign_b
== 1) return "pressure0+";
31 if(p
.mode
== 0 && p
.esign_a
== 1 && p
.esign_b
== -1) return "pressure+-";
32 if(p
.mode
== 0 && p
.esign_a
== 1 && p
.esign_b
== 0) return "pressure+0";