SDL 3.0
SDL_PenAxisEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
 
Uint32 reserved
 
Uint64 timestamp
 
SDL_WindowID windowID
 
SDL_PenID which
 
SDL_PenInputFlags pen_state
 
float x
 
float y
 
SDL_PenAxis axis
 
float value
 

Detailed Description

Pressure-sensitive pen pressure / angle event structure (event.paxis.*)

You might get some of these events even if the pen isn't touching the tablet.

Since
This struct is available since SDL 3.0.0.

Definition at line 817 of file SDL_events.h.

Field Documentation

◆ axis

SDL_PenAxis SDL_PenAxisEvent::axis

Axis that has changed

Definition at line 827 of file SDL_events.h.

◆ pen_state

SDL_PenInputFlags SDL_PenAxisEvent::pen_state

Complete pen input state at time of event

Definition at line 824 of file SDL_events.h.

◆ reserved

Uint32 SDL_PenAxisEvent::reserved

Definition at line 820 of file SDL_events.h.

◆ timestamp

Uint64 SDL_PenAxisEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 821 of file SDL_events.h.

◆ type

SDL_EventType SDL_PenAxisEvent::type

SDL_EVENT_PEN_AXIS

Definition at line 819 of file SDL_events.h.

◆ value

float SDL_PenAxisEvent::value

New value of axis

Definition at line 828 of file SDL_events.h.

◆ which

SDL_PenID SDL_PenAxisEvent::which

The pen instance id

Definition at line 823 of file SDL_events.h.

◆ windowID

SDL_WindowID SDL_PenAxisEvent::windowID

The window with pen focus, if any

Definition at line 822 of file SDL_events.h.

◆ x

float SDL_PenAxisEvent::x

X position of pen on tablet

Definition at line 825 of file SDL_events.h.

◆ y

float SDL_PenAxisEvent::y

Y position of pen on tablet

Definition at line 826 of file SDL_events.h.


The documentation for this struct was generated from the following file: