Goliath II
Controller Receiver
 All Classes Namespaces Files Functions Enumerations
control.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
14 enum CONTROL {
15  JSLX, JSLY, JSRX, JSRY, BTN1, BTN2, BTN3, BTN4, CONTROL_NR_ITEMS
16 };
17 
23 CONTROL stringToControl(std::string string);
24 
30 int stringToValue(std::string string);
CONTROL
enum for all axes and buttons
Definition: control.h:14
int stringToValue(std::string string)
Converts value of button, axis or config from string to int.
Definition: control.cpp:7
CONTROL stringToControl(std::string string)
Converts control string from controller to CONTROL enum.
Definition: control.cpp:3