SDL 3.0
SDL_PenCapabilityInfo Struct Reference

#include <SDL_pen.h>

Data Fields

float max_tilt
 
Uint32 wacom_id
 
Sint8 num_buttons
 

Detailed Description

Pen capabilities, as reported by SDL_GetPenCapabilities()

Definition at line 241 of file SDL_pen.h.

Field Documentation

◆ max_tilt

float SDL_PenCapabilityInfo::max_tilt

Physical maximum tilt angle, for XTILT and YTILT, or SDL_PEN_INFO_UNKNOWN . Pens cannot typically tilt all the way to 90 degrees, so this value is usually less than 90.0.

Definition at line 243 of file SDL_pen.h.

◆ num_buttons

Sint8 SDL_PenCapabilityInfo::num_buttons

Number of pen buttons (not counting the pen tip), or SDL_PEN_INFO_UNKNOWN

Definition at line 245 of file SDL_pen.h.

◆ wacom_id

Uint32 SDL_PenCapabilityInfo::wacom_id

For Wacom devices: wacom tool type ID, otherwise 0 (useful e.g. with libwacom)

Definition at line 244 of file SDL_pen.h.


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