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.
Diff: manager/EATouchManager.h
- Revision:
- 4:f8f7f4f9c58d
- Parent:
- 1:f04bcaea1d60
--- a/manager/EATouchManager.h Wed Mar 31 22:22:21 2010 +0000 +++ b/manager/EATouchManager.h Mon Apr 26 21:37:54 2010 +0000 @@ -6,6 +6,7 @@ #include "mbed.h" class EATouch; +class EALCD; class EAHitBox; /** @@ -15,7 +16,7 @@ class EATouchManager { public: - EATouchManager(EATouch& touch); + EATouchManager(EALCD& lcd, EATouch& touch); ~EATouchManager(); @@ -27,13 +28,23 @@ 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 \ No newline at end of file