beautypg.com

Touchpad – Matrix Orbital GLK24064-25 Legacy User Manual

Page 38

background image

38

10.

Touchpad

10.1. Set Touch

Region

Dec
Hex

254 132

FE 84

ID X Position Y Position Width Height Key Down Key Up
ID X Position Y Position Width Height Key Down Key Up

Creates a region of the screen that responds when pressed and released with a defined single byte.

ID

1 byte, unique region identification number, maximum 32 regions

X Position

1 byte, leftmost coordinate, value between 0 and 239

Y Position

1 byte, topmost coordinate, value between 0 and 63

Width

1 byte, width of region, must be within screen bounds

Height

1 byte, height of region, must be within screen bounds

Key Down

1 byte, value returned when region is pressed

Key Up

1 byte, value returned when region is released

10.2. Delete a

Touch Region

Dec
Hex

254 133

FE 85

ID
ID

Deletes a previously created touch region. Events from undefined regions return the value 255 by default. Please
ensure remember is set on before executing this command.

ID

1 byte, unique region identification number


10.3. Delete All

Touch Regions

Dec
Hex

254 134

FE 86


Deletes all previously created touch regions. Recommended for use before dividing the screen into new regions.
Please ensure remember is set on before executing this command.


10.4. Set Touch

Mode

Dec
Hex

254 135

FE 87

Mode
Mode

Sets the method used to return touch events. Region mode will return a single value for events in defined areas.
Coordinate mode will return event, x position, and y position bytes for each press, drag, or release.

Mode

1 byte, touch reporting mode, 0 for region or 1 for coordinate mode. Default is coordinate.


This manual is related to the following products: