Skip to main content

InputTouch Class

Package: GHIElectronics.Endpoint.Devices.Touch
Namespace: GHIElectronics.Endpoint.Devices.Touch

Touchscreen backed by a kernel input device at /dev/input/eventN. USB HID touchscreens show up this way automatically.

public sealed class InputTouch : Touch

Constructors​

InputTouch(string deviceName)​

public InputTouch(string deviceName)

Opens a specific /dev/input/eventN path.

Properties​

Connected​

public bool Connected { get; }

Returns bool

DeviceName​

public string DeviceName { get; }

The /dev/input/eventN path the touchscreen was opened on.

Returns string

Height​

public int Height { get; }

Returns int

ProductId​

public int ProductId { get; }

USB product id (0 if the touchscreen is not a USB device).

Returns int

VendorId​

public int VendorId { get; }

USB vendor id (0 if the touchscreen is not a USB device).

Returns int

Width​

public int Width { get; }

Returns int

Methods​

Dispose()​

public override void Dispose()

Closes the kernel input device and stops the reader thread.