Now you can download a copy of these docs so you can use them offline! Download now
DigitalIOButton.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 __DIGITAL_IO_BUTTON_H__ 00008 #define __DIGITAL_IO_BUTTON_H__ 00009 00010 #include "Buttons/Button.h" 00011 00012 class DigitalIOButton: public Button 00013 { 00014 public: 00015 static const bool kActiveState; 00016 00017 DigitalIOButton(int port); 00018 virtual ~DigitalIOButton() {} 00019 00020 virtual bool Get(); 00021 00022 private: 00023 int m_port; 00024 }; 00025 00026 #endif
Generated on Thu Jan 12 2012 22:35:19 for WPILibC++ by
1.7.1