Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
manager/EATouchManager.h
- Committer:
- richardparker
- Date:
- 2010-04-26
- Revision:
- 4:f8f7f4f9c58d
- Parent:
- 1:f04bcaea1d60
File content as of revision 4:f8f7f4f9c58d:
// Copyright 2010 Richard Parker #ifndef MBED_EATOUCHMANAGER_H #define MBED_EATOUCHMANAGER_H #include "mbed.h" class EATouch; class EALCD; class EAHitBox; /** * Class to handle the hits on the touch screen * @author Richard Parker */ class EATouchManager { public: EATouchManager(EALCD& lcd, EATouch& touch); ~EATouchManager(); void tick(); void deleteHitBox(EAHitBox* box); EAHitBox* createHitBox(); void clearHitBoxes(); inline EAHitBox* head() { return _head; } inline void setTimeout(unsigned int timeout) { _timeout = timeout; } inline unsigned int timeout() { return _timeout; } private: EATouch& _touch; EALCD& _lcd; EAHitBox* _head; unsigned int _count; unsigned int _timeout; void _doHits(short x, short y); void _watchReset(); void _watchCheck(); }; #endif