diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-14 20:46:47 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-14 20:46:47 +0000 |
commit | 8c194ec17b4fc4810bde451e803d9cb29db28e59 (patch) | |
tree | 5828697d06531c289a2027a08cf997598923738d /NxWidgets/nxwm/include/ctouchscreen.hxx | |
parent | 85875d96df46aefef80c0fa242525646b4090247 (diff) | |
download | nuttx-8c194ec17b4fc4810bde451e803d9cb29db28e59.tar.gz nuttx-8c194ec17b4fc4810bde451e803d9cb29db28e59.tar.bz2 nuttx-8c194ec17b4fc4810bde451e803d9cb29db28e59.zip |
NxWM: Calibration is now done on a separate thread; Change mechanism for reporting calibration data; add method to determine if the application is full-screen
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4736 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/nxwm/include/ctouchscreen.hxx')
-rw-r--r-- | NxWidgets/nxwm/include/ctouchscreen.hxx | 29 |
1 files changed, 28 insertions, 1 deletions
diff --git a/NxWidgets/nxwm/include/ctouchscreen.hxx b/NxWidgets/nxwm/include/ctouchscreen.hxx index 52433c1de..396400204 100644 --- a/NxWidgets/nxwm/include/ctouchscreen.hxx +++ b/NxWidgets/nxwm/include/ctouchscreen.hxx @@ -167,6 +167,17 @@ namespace NxWM } /** + * Is the touchscreen calibrated? + * + * @return True if the touchscreen has been calibrated. + */ + + inline bool isCalibrated(void) const + { + return m_calibrated; + } + + /** * Provide touchscreen calibration data. If calibration data is received (and * the touchscreen is enabled), then received touchscreen data will be scaled * using the calibration data and forward to the NX layer which dispatches the @@ -175,7 +186,23 @@ namespace NxWM * @param data. A reference to the touchscreen data. */ - void setCalibrationData(struct SCalibrationData &caldata); + void setCalibrationData(const struct SCalibrationData &caldata); + + /** + * Recover the calibration data so that it can be saved to non-volatile storage. + * + * @param data. A reference to the touchscreen data. + * @return True if calibration data was successfully returned. + */ + + inline bool getCalibrationData(struct SCalibrationData &caldata) const + { + if (m_calibrated) + { + caldata = m_calibData; + } + return m_calibrated; + } /** * Capture raw driver data. This method will capture mode one raw touchscreen |