#include <ShortStylusSuppressor.h>


Public Member Functions | |
| ShortStylusSuppressor (const TimeInterval &threshold=0.75) | |
| Constructor. | |
| void | setBaseIOEventHandler (BaseIOEventHandler &bioeh) |
| Register a BaseIOEventHandler with this ShortStylusSuppressor. | |
| void | pollBaseIOEvents (BaseIOEventHandler &bioeh) |
| Call a BaseIOEventHandler functor on the events list immediately. | |
| void | setThreshold (const TimeInterval &threshold) |
| Set the minimum insertion/withdrawal-time threshold for stylus events. | |
| virtual void | operator() (std::deque< BaseIOEvent > &events) |
| BaseIOEvent handler callback. | |
| virtual | ~ShortStylusSuppressor () |
| Destructor. | |
Some BrailleTutors generate spurious stylus events---when hands are rubbed across the Tutor, for example, or when a stylus is being inserted or removed and makes weak electrical contact. These spurious events are typically pretty short. A ShortStylusSuppressor will filter stylus-related BaseIOEvents where the delay between STYLUS_DOWN and STYLUS_UP is too brief to have been real. All other BaseIOEvents are passed through. See additional note in ShortStylusSuppressor.h
1.5.3