Skip to main content

GHIElectronics.Endpoint.Devices.Touch

Touchscreen support for Endpoint. The Touch class is abstract: subclass it for your panel's chip (I2C, SPI, custom). Ships one concrete subclass, InputTouch, that wraps a kernel /dev/input/eventN (used for USB touchscreens).

Classes​

ClassSummary
InputTouchTouchscreen backed by a kernel input device at /dev/input/eventN. USB HID touchscreens show up this way automatically.
TouchA touchscreen on the board. This class is abstract: the library ships one concrete subclass, Touch.InputTouch, for touchscreens the kernel exposes at /dev/input/eventN (USB HID touchscreens). All other touch controllers (SPI chips like XPT2046, I2C chips like FT5x06 or GT911, custom boards) are the customer's own subclass code using the Core Spi/I2c/Gpio APIs. Interrupt-based drivers are first class: GpioPin.ValueChanged wakes the touch thread the moment the chip pulls the IRQ line. Subclasses raise Touch.OnChangedEvent by calling Touch.RaiseChanged from their reader loop or interrupt handler.
TouchEventArgsEvent data for Touch.OnChangedEvent: how the fingers changed since the last event.

Structs​

StructSummary
TouchPointOne finger on the touchscreen.

Enums​

EnumSummary
TouchEventTypeHow the Points changed between frames.

Delegates​

DelegateSummary
TouchChangedEventHandlerHandler for Touch.OnChangedEvent. Called on the touch reader thread (Touch.InputTouch uses the kernel evdev reader thread; custom subclasses decide their own).