Skip to content

MTY_PenEvent

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Pen event.

typedef struct {
    MTY_PenFlag flags;
    uint16_t    x;
    uint16_t    y;
    uint16_t    pressure;
    uint16_t    rotation;
    int8_t      tiltX;
    int8_t      tiltY;
} MTY_PenEvent;

Members

flags (MTY_PenFlag)

Pen attributes.

x (uint16_t)

The horizontal position in the client area of the window.

y (uint16_t)

The vertical position in the client area of the window.

pressure (uint16_t)

Pressure on the drawing surface between 0 and 1024.

rotation (uint16_t)

Rotation of the pen between 0 and 359.

tiltX (int8_t)

Horizontal tilt of the pen between -90 and 90.

tiltY (int8_t)

Vertical tilt of the pen between -90 and 90.

See also

Module: App

Clone this wiki locally