From 2bfda8161a877d7e618a37353f806981c0ab4a4b Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 10 May 2012 01:35:23 +0000 Subject: More NxWM touchscreen fixes git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4719 42af7a65-404d-4744-a932-0658087f49c3 --- NxWidgets/nxwm/include/ccalibration.hxx | 10 +--------- NxWidgets/nxwm/include/ctouchscreen.hxx | 5 +---- NxWidgets/nxwm/src/ccalibration.cxx | 2 +- 3 files changed, 3 insertions(+), 14 deletions(-) (limited to 'NxWidgets/nxwm') diff --git a/NxWidgets/nxwm/include/ccalibration.hxx b/NxWidgets/nxwm/include/ccalibration.hxx index 9ca5b7589..0adcd894f 100644 --- a/NxWidgets/nxwm/include/ccalibration.hxx +++ b/NxWidgets/nxwm/include/ccalibration.hxx @@ -89,7 +89,7 @@ namespace NxWM * callibration data. */ - class CCalibration : public IApplication, private NXWidgets::CWidgetEventHandler + class CCalibration : public IApplication { private: /** @@ -146,14 +146,6 @@ namespace NxWM void stateMachine(void); - /** - * Handle a mouse button click event. - * - * @param e The event data. - */ - - void handleClickEvent(const NXWidgets::CWidgetEventArgs &e); - /** * Presents the next calibration screen */ diff --git a/NxWidgets/nxwm/include/ctouchscreen.hxx b/NxWidgets/nxwm/include/ctouchscreen.hxx index 31c61623b..f8eaeaee8 100644 --- a/NxWidgets/nxwm/include/ctouchscreen.hxx +++ b/NxWidgets/nxwm/include/ctouchscreen.hxx @@ -45,9 +45,6 @@ #include #include -#include "cwidgeteventhandler.hxx" -#include "iapplication.hxx" - /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ @@ -63,7 +60,7 @@ namespace NxWM * callibration data. */ - class CTouchscreen : public IApplication, private NXWidgets::CWidgetEventHandler + class CTouchscreen { private: int m_touchFd; /**< File descriptor of the opened touchscreen device */ diff --git a/NxWidgets/nxwm/src/ccalibration.cxx b/NxWidgets/nxwm/src/ccalibration.cxx index 2ca132dac..e218b5f1e 100644 --- a/NxWidgets/nxwm/src/ccalibration.cxx +++ b/NxWidgets/nxwm/src/ccalibration.cxx @@ -156,7 +156,7 @@ bool CCalibration::run(void) // Loop until calibration completes - while (!m_stop) + while (!m_stop && m_state != CALIB_COMPLETE) { // Wait for the next raw touchscreen input -- cgit v1.2.3