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.
Dependents: TouchScreenGUIDemo
TouchScreenEventSource.cpp@0:b250e56f3514, 2016-03-25 (annotated)
- Committer:
- duncanFrance
- Date:
- Fri Mar 25 13:48:33 2016 +0000
- Revision:
- 0:b250e56f3514
- Child:
- 1:6fb3545bddf7
Initial import
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
duncanFrance | 0:b250e56f3514 | 1 | #include "TouchScreenEventSource.h" |
duncanFrance | 0:b250e56f3514 | 2 | /** |
duncanFrance | 0:b250e56f3514 | 3 | * Implementation of TouchScreenEventSource which adds timers to detect and dispatch |
duncanFrance | 0:b250e56f3514 | 4 | * tap and double-tap events |
duncanFrance | 0:b250e56f3514 | 5 | **/ |
duncanFrance | 0:b250e56f3514 | 6 | |
duncanFrance | 0:b250e56f3514 | 7 | TouchScreenEventSource::TouchScreenEventSource() : _state(State::Idle) |
duncanFrance | 0:b250e56f3514 | 8 | { |
duncanFrance | 0:b250e56f3514 | 9 | } |
duncanFrance | 0:b250e56f3514 | 10 | |
duncanFrance | 0:b250e56f3514 | 11 | void TouchScreenEventSource::setDispatcher(EventDispatcher* d) { |
duncanFrance | 0:b250e56f3514 | 12 | _dispatcher = d; |
duncanFrance | 0:b250e56f3514 | 13 | } |
duncanFrance | 0:b250e56f3514 | 14 | |
duncanFrance | 0:b250e56f3514 | 15 | void TouchScreenEventSource::touchStartHandler(TouchPosition p) |
duncanFrance | 0:b250e56f3514 | 16 | { |
duncanFrance | 0:b250e56f3514 | 17 | } |
duncanFrance | 0:b250e56f3514 | 18 | |
duncanFrance | 0:b250e56f3514 | 19 | void TouchScreenEventSource::touchMoveHandler(TouchPosition p) |
duncanFrance | 0:b250e56f3514 | 20 | { |
duncanFrance | 0:b250e56f3514 | 21 | } |
duncanFrance | 0:b250e56f3514 | 22 | |
duncanFrance | 0:b250e56f3514 | 23 | void TouchScreenEventSource::touchEndHandler(TouchPosition p) |
duncanFrance | 0:b250e56f3514 | 24 | { |
duncanFrance | 0:b250e56f3514 | 25 | } |