WPILib 2012
WPILibRoboticsLibraryforFRC
Buttons/InternalButton.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2011. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef __INTERNAL_BUTTON_H__
00008 #define __INTERNAL_BUTTON_H__
00009 
00010 #include "Buttons/Button.h"
00011 
00012 class InternalButton : public Button
00013 {
00014 public:
00015         InternalButton();
00016         InternalButton(bool inverted);
00017         virtual ~InternalButton() {}
00018 
00019         void SetInverted(bool inverted);
00020         void SetPressed(bool pressed);
00021 
00022         virtual bool Get();
00023 
00024 private:
00025         bool m_pressed;
00026         bool m_inverted;
00027 };
00028 
00029 #endif
 All Classes Functions Variables