An input/output controller for virtual pinball machines, with plunger position tracking, accelerometer-based nudge sensing, button input encoding, and feedback device control.
Dependencies: USBDevice mbed FastAnalogIn FastIO FastPWM SimpleDMA
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 const int npix = JOYMAX; 00007 00008 class PlungerSensor 00009 { 00010 public: 00011 PlungerSensor() { } 00012 00013 void init() { } 00014 int lowResScan() { return 0; } 00015 bool highResScan(int &pos) { return false; } 00016 void sendExposureReport(USBJoystick &) { } 00017 }; 00018
Generated on Fri Jul 15 2022 08:43:32 by 1.7.2