Sample GUI for LPC4088. Base code to begin dev
Dependencies: DMBasicGUI DMSupport
Fork of lpc4088_displaymodule_shipped_demo by
Diff: AppLauncherSpecial.cpp
- Revision:
- 2:229f88d6f56b
- Parent:
- 0:b94e330c98ac
--- a/AppLauncherSpecial.cpp Fri Mar 20 14:55:34 2015 +0100 +++ b/AppLauncherSpecial.cpp Fri Mar 20 14:04:25 2015 +0000 @@ -187,7 +187,7 @@ // Wait for touches TouchPanel* touch = board->touchPanel(); - FunctionPointer* fpOld = touch->setListener(new FunctionPointer(this, &AppLauncherSpecial::onTouchEvent)); + touch->setListener(new FunctionPointer(this, &AppLauncherSpecial::onTouchEvent)); touch_coordinate_t coord; while (true) { Thread::signal_wait(APP_SIGID_TOUCH); @@ -254,10 +254,6 @@ appToLaunch = NO_APPLICATION; } } - - // restore old touch listener (get our listener in return) - fpOld = touch->setListener(fpOld); - delete fpOld; } bool AppLauncherSpecial::teardown()