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(Touch): ...

Constructors​

InputTouch(string deviceName)​

def __init__(self, deviceName: str):

Opens a specific /dev/input/eventN path.

Properties​

Connected​

Connected: bool # @property

Returns bool

DeviceName​

DeviceName: str # @property

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

Returns string

Height​

Height: int # @property

Returns int

ProductId​

ProductId: int # @property

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

Returns int

VendorId​

VendorId: int # @property

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

Returns int

Width​

Width: int # @property

Returns int

Methods​

Dispose()​

def Dispose(self) -> None:

Closes the kernel input device and stops the reader thread.