TSdlPenAxisEvent
Pressure-sensitive pen pressure / angle event structure (Event.PenAxis.* )
You might get some of these events even if the pen isn't touching the tablet.
Definition
Unit: Neslib.Sdl3.Events
Properties
Name | Description |
---|---|
Axis | Axis that has changed |
Kind | Event kind (TSdlEventKind.PenAxis) |
PenID | The pen instance id |
PenState | Complete pen input state at time of event |
Position | Position, relative to window |
Timestamp | In nanoseconds, populated using SdlGetTicksNS |
Value | New value of axis |
Window | The window with pen focus, if any |
WindowID | The ID of the window with pen focus, if any |
X | X coordinate, relative to window |
Y | Y coordinate, relative to window |
Property Descriptions
Axis
Axis that has changed
property Axis: TSdlPenAxis read GetAxis
Type: TSdlPenAxis
Kind
Event kind (TSdlEventKind.PenAxis)
property Kind: TSdlEventKind read GetKind
Type: TSdlEventKind
PenID
The pen instance id
property PenID: TSdlPenID read FHandle.which
Type: TSdlPenID
PenState
Complete pen input state at time of event
property PenState: TSdlPenInputFlags read GetPenState
Type: TSdlPenInputFlags
Position
Position, relative to window
property Position: TSdlPointF read GetPosition
Type: TSdlPointF
Timestamp
In nanoseconds, populated using SdlGetTicksNS
property Timestamp: UInt64 read FHandle.timestamp
Type: UInt64
Value
New value of axis
property Value: Single read FHandle.value
Type: Single
Window
The window with pen focus, if any
property Window: TSdlWindow read GetWindow
Type: TSdlWindow
WindowID
The ID of the window with pen focus, if any
property WindowID: TSdlWindowID read FHandle.windowID
Type: TSdlWindowID
X
X coordinate, relative to window
property X: Single read FHandle.x
Type: Single
Y
Y coordinate, relative to window
property Y: Single read FHandle.y
Type: Single