Alex exoskeleton
ALEX SoftwareDocumentation
Buttons.h
Go to the documentation of this file.
1 
10 #ifndef BUTTONS_H_INCLUDED
11 #define BUTTONS_H_INCLUDED
12 #include <iostream>
13 
20 struct button_states {
21  int gButton;
22  int yButton;
23  int bButton;
24  int rButton;
25 };
26 
33 class Buttons {
34  private:
36 
37  public:
38  Buttons();
39  bool isKeyPressed(int state);
40  bool isKeyDown(int state);
41  bool isKeyUp(int state);
42  button_states getStates();
43  void setStates();
44 };
45 #endif
button_states state
Definition: Buttons.h:35
int gButton
Definition: Buttons.h:21
int rButton
Definition: Buttons.h:24
int bButton
Definition: Buttons.h:23
Describes the state of a set of buttons which include a Green, Yellow, Blue and Red. Used within the Buttons class. - Not currently used.
Definition: Buttons.h:20
int yButton
Definition: Buttons.h:22
Buttons class, which represents a set of buttons. - Not currently used.
Definition: Buttons.h:33