beautypg.com

2 set touch region, 3 delete touch region, 4 delete all touch regions – Matrix Orbital GLT240128 Legacy User Manual

Page 42

background image

9.2

Set Touch Region

Syntax

Hexadecimal

0xFE 0x84 [num] [x] [y] [w] [h] [keyDown] [keyUp]

Decimal

254 132 [num] [x] [y] [w] [h] [keyDown] [keyUp]

Parameters

Parameter

Length

Description

num

1

Region number, each region must
be identified by a unique number,
single byte (32 region max).

x

1

X co-ordinate of the top left corner
of the region, single byte (0-Xmax).

y

1

Y co-ordinate of the top left corner
of the region, single byte (0-Ymax).

w

1

Width of the region, single byte
(0-Xmax).

h

1

Height of the region, single byte
(0-Ymax).

keyDown

1

Value returned when region is
pressed, single byte (0-255).

keyUp

1

Value returned when region is
released, single byte (0-255).

Description

This command creates a touchpad region that reports the key down or
key up values saved to it when a press or release respectively is detected
within the region defined.

Remembered

Yes

9.3

Delete Touch Region

Syntax

Hexadecimal

0xFE 0x85 [num]

Decimal

254 133 [num]

Parameters

Parameter

Length

Description

num

1

Region number to be deleted, single
byte.

Description

This command deletes a previously created touchpad region, unique key
preses will no longer be received from events in the area defined by the
deleted region. All events in undefined regions will return 255.

Remembered

Yes

9.4

Delete All Touch Regions

Matrix Orbital

GLT240128

37