00001 #ifndef FCAM_F2_SHUTTERBUTTON_H
00002 #define FCAM_F2_SHUTTERBUTTON_H
00003
00004 #include "PhidgetDevice.h"
00005 #include "../Event.h"
00006
00007 namespace FCam {
00008 namespace F2 {
00011 class ShutterButton : public PhidgetDevice, public EventGenerator {
00012 public:
00014 virtual std::string getEventString(const Event &) const;
00017 ShutterButton(int halfPress = 1, int fullPress = 0);
00018 protected:
00020 int halfPressHandler(CPhidgetInterfaceKitHandle interfaceKit, int index, int state);
00022 int fullPressHandler(CPhidgetInterfaceKitHandle interfaceKit, int index, int state);
00025 virtual int handleInputChange(CPhidgetInterfaceKitHandle interfaceKit, int index, int state);
00026 private:
00028 int halfPressIndex;
00030 int fullPressIndex;
00031
00032 };
00033 }
00034 }
00035
00036 #endif