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.

class InputTouch : public Touch {};

Constructors​

InputTouch(string deviceName)​

InputTouch(const std::string& deviceName);

Opens a specific /dev/input/eventN path.

Properties​

Connected​

bool Connected() const;

Returns bool

DeviceName​

std::string DeviceName() const;

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

Returns string

Height​

int32_t Height() const;

Returns int

ProductId​

int32_t ProductId() const;

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

Returns int

VendorId​

int32_t VendorId() const;

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

Returns int

Width​

int32_t Width() const;

Returns int

Methods​

Dispose()​

virtual void Dispose() override;

Closes the kernel input device and stops the reader thread.