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
Diff: TouchScreenEventSource.cpp
- Revision:
- 4:0be0d6a61e90
- Parent:
- 3:45777fe81448
- Child:
- 5:e3084e17e8e6
--- a/TouchScreenEventSource.cpp Sun May 08 14:42:59 2016 +0000 +++ b/TouchScreenEventSource.cpp Tue May 17 16:28:53 2016 +0000 @@ -9,6 +9,9 @@ TouchScreenEventSource::TouchScreenEventSource(TouchScreen* touchScreen, GUI* gui) : EventSource(gui), _touchScreen(touchScreen), _state(Idle) { + _touchScreen->setTouchStartHandler(this, &TouchScreenEventSource::touchStartHandler); + _touchScreen->setTouchEndHandler(this, &TouchScreenEventSource::touchEndHandler); + _touchScreen->setTouchMoveHandler(this, &TouchScreenEventSource::touchMoveHandler); } void TouchScreenEventSource::touchStartHandler(TouchPosition p)