Alex exoskeleton
ALEX SoftwareDocumentation
Main Page
Related Pages
Classes
Files
File List
File Members
Refactor
src
libs
inputDevice
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
:
35
button_states
state
;
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
Buttons::state
button_states state
Definition:
Buttons.h:35
button_states::gButton
int gButton
Definition:
Buttons.h:21
button_states::rButton
int rButton
Definition:
Buttons.h:24
button_states::bButton
int bButton
Definition:
Buttons.h:23
button_states
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
button_states::yButton
int yButton
Definition:
Buttons.h:22
Buttons
Buttons class, which represents a set of buttons. - Not currently used.
Definition:
Buttons.h:33
Generated by
1.8.11