An I/O controller for virtual pinball machines: accelerometer nudge sensing, analog plunger input, button input encoding, LedWiz compatible output controls, and more.
Dependencies: mbed FastIO FastPWM USBDevice
Fork of Pinscape_Controller by
nullSensor.h
00001 // Null plunger sensor 00002 // 00003 // This file defines a class that provides the plunger sensor interface 00004 // that the main program expects, but with no physical sensor underneath. 00005 00006 #ifndef NULLSENSOR_H 00007 #define NULLSENSOR_H 00008 00009 #include "plunger.h" 00010 00011 class PlungerSensorNull: public PlungerSensor 00012 { 00013 public: 00014 PlungerSensorNull() : PlungerSensor(65535) { } 00015 00016 virtual void init() { } 00017 virtual bool readRaw(PlungerReading &r) { return false; } 00018 virtual uint32_t getAvgScanTime() { return 0; } 00019 }; 00020 00021 #endif /* NULLSENSOR_H */
Generated on Wed Jul 13 2022 03:30:11 by 1.7.2