Class SDL_PenAxis

java.lang.Object
club.doki7.sdl3.enumtype.SDL_PenAxis

public final class SDL_PenAxis extends Object

Pen axis indices.

These are the valid values for the axis field in SDL_PenAxisEvent. All axes are either normalised to 0..1 or report a (positive or negative) angle in degrees, with 0.0 representing the centre. Not all pens/backends support all axes: unsupported axes are always zero.

To convert angles for tilt and rotation into vector representation, use SDL_sinf on the XTILT, YTILT, or ROTATION component, for example:

SDL_sinf(xtilt * SDL_PI_F / 180.0).

Since: This enum is available since SDL 3.2.0.