mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
25 lines
350 B
C
25 lines
350 B
C
|
|
/*
|
||
|
|
* DoubleButton.h
|
||
|
|
*
|
||
|
|
* Created on: Jun 24, 2014
|
||
|
|
* Author: alex
|
||
|
|
*/
|
||
|
|
|
||
|
|
#ifndef DOUBLEBUTTON_H_
|
||
|
|
#define DOUBLEBUTTON_H_
|
||
|
|
|
||
|
|
#include "WPILib.h"
|
||
|
|
|
||
|
|
class DoubleButton : public Trigger {
|
||
|
|
private:
|
||
|
|
Joystick* joy;
|
||
|
|
int button1, button2;
|
||
|
|
|
||
|
|
public:
|
||
|
|
DoubleButton(Joystick* joy, int button1, int button2);
|
||
|
|
|
||
|
|
bool Get();
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif /* DOUBLEBUTTON_H_ */
|