Partager via


enumTouchPanelSampleFlags (Compact 2013)

3/26/2014

This enumeration defines flags that describe a touch sample from the touch driver, and which are set in a TOUCH_PANEL_SAMPLE_FLAGS data item.

Syntax

enum enumTouchPanelSampleFlags {
  TouchSampleValidFlag = 0x01,
  TouchSampleDownFlag = 0x02,
  TouchSampleIsCalibratedFlag = 0x04,
  TouchSamplePreviousDownFlag = 0x08,
  TouchSampleIgnore = 0x10,
  TouchSampleMouse = 0x40000000
};

Elements

  • TouchSampleValidFlag
    Indicates that the sample is valid. The input system ignores invalid samples.
  • TouchSampleDownFlag
    State of finger or stylus. When the finger or stylus is pressed to the touch screen, the driver reports readings with both the TouchSampleValidFlag and TouchSampleDownFlag flags set. When the user removes the stylus or finger from the touch screen, the driver is required to send back at least one reading with the TouchSampleValidFlag flag set but the TouchSampleDownFlag flag cleared to indicate that the stylus or finger is up.
  • TouchSampleIsCalibratedFlag
    Indicator for the input system. This flag is set by the driver to notify the input system that it is not necessary to further calibrate the x and y coordinates of the sample.
  • TouchSamplePreviousDownFlag
    State from the previous valid sample. It is not necessary for the driver to report this to the input system but it is useful in the driver itself.
  • TouchSampleIgnore
    Flag to ignore the sample.
  • TouchSampleMouse
    Reserved.

Requirements

Header

tchddi.h

See Also

Reference

Touch Proxy Driver Enumerations
TOUCH_PANEL_SAMPLE_FLAGS