diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-13 18:28:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-13 18:28:43 +0000 |
commit | 21115c210a35c6f320a43d67fdd662639534eb2e (patch) | |
tree | 1cd10fccd4799f0247de8c71d347610bb4a4dee4 /nuttx/drivers/input/ads7843e.h | |
parent | 1aa4a0750b0705fefbb1cd2819dbc30684d25353 (diff) | |
download | px4-nuttx-21115c210a35c6f320a43d67fdd662639534eb2e.tar.gz px4-nuttx-21115c210a35c6f320a43d67fdd662639534eb2e.tar.bz2 px4-nuttx-21115c210a35c6f320a43d67fdd662639534eb2e.zip |
NXWidgets::CImage needs to catch mouse/touchscreen events; All touchscreen drivers need to report the last valid X/Y data when the screen is untouched.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4731 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/input/ads7843e.h')
-rw-r--r-- | nuttx/drivers/input/ads7843e.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nuttx/drivers/input/ads7843e.h b/nuttx/drivers/input/ads7843e.h index 7a534099e..030d1cb33 100644 --- a/nuttx/drivers/input/ads7843e.h +++ b/nuttx/drivers/input/ads7843e.h @@ -1,7 +1,7 @@ /******************************************************************************************** * drivers/input/ads7843e.h * - * Copyright (C) 2011 Gregory Nutt. All rights reserved. + * Copyright (C) 2011-2012 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * References: @@ -115,6 +115,7 @@ struct ads7843e_sample_s { uint8_t id; /* Sampled touch point ID */ uint8_t contact; /* Contact state (see enum ads7843e_contact_e) */ + bool valid; /* True: x,y contain valid, sampled data */ uint16_t x; /* Measured X position */ uint16_t y; /* Measured Y position */ }; |