Goliath II
Controller Receiver
 All Classes Namespaces Files Functions Enumerations
Enumerations | Functions
control.h File Reference
#include <string>

Go to the source code of this file.

Enumerations

enum  CONTROL {
  JSLX, JSLY, JSRX, JSRY,
  BTN1, BTN2, BTN3, BTN4,
  CONTROL_NR_ITEMS
}
 enum for all axes and buttons
 

Functions

CONTROL stringToControl (std::string string)
 Converts control string from controller to CONTROL enum. More...
 
int stringToValue (std::string string)
 Converts value of button, axis or config from string to int. More...
 

Detailed Description

Author
Group 7 - Informatica

Function Documentation

CONTROL stringToControl ( std::string  string)

Converts control string from controller to CONTROL enum.

Parameters
stringButton or axis
int stringToValue ( std::string  string)

Converts value of button, axis or config from string to int.

Parameters
stringvalue of button, axis or config