Unit HIDTOUCH

From Ultibo.org
Jump to: navigation, search

Return to Unit Reference


Description


Ultibo HID Touch Consumer unit

HID Touch

This is a consumer for any generic HID touch screen, it accepts HID application collections in the digitizer device page (HID_PAGE_DIGITIZERS) with the usage set to touch screen (HID_DIGITIZERS_TOUCH_SCREEN).

The consumer will bind to any touch collection that implements at a minimum the X and Y axis and the tip switch. The event data for in range, confidence, width and height are not currently reported but may be added if required.

To prevent the HID mouse consumer from binding to touch screen devices that also include a mouse collection, this consumer sets the HID_MOUSE_REJECT_TOUCH variable to True during initialization.

Constants



[Expand]
HID touch specific constants HID_TOUCH_*


Type definitions



HID touch point

[Expand]

PHIDTouchPoint = ^THIDTouchPoint;

THIDTouchPoint = record

HID touch points

[Expand]

PHIDTouchPoints = ^THIDTouchPoints;

THIDTouchPoints = array[0..0] of THIDTouchPoint;

HID touch device

[Expand]

PHIDTouchDevice = ^THIDTouchDevice;

THIDTouchDevice = record


Public variables


None defined

Function declarations



Initialization functions

[Expand]
procedure HIDTouchInit;
Description: Initialize the HID Touch unit and HID Touch driver


HID touch functions

[Expand]
function HIDTouchStart(Touch:PTouchDevice):LongWord;
Description: Implementation of TouchDeviceStart API for HID Touch device


[Expand]
function HIDTouchStop(Touch:PTouchDevice):LongWord;
Description: Implementation of TouchDeviceStop API for HID Touch device


[Expand]
function HIDTouchUpdate(Touch:PTouchDevice):LongWord;
Description: Implementation of TouchDeviceUpdate API for HID Touch device


HID touch helper functions

[Expand]
function HIDTouchCheckCollection(Collection:PHIDCollection):LongWord;
Description: Check if a HID collection is suitable for use as a touch device


[Expand]
function HIDTouchCheckInputDefinition(Definition:PHIDDefinition):LongWord;
Description: Check if a HID definition is suitable for use as a touch input report


[Expand]
function HIDTouchCheckFeatureDefinition(Definition:PHIDDefinition):LongWord;
Description: Check if a HID definition is suitable for use as a touch feature report


Return to Unit Reference