Class SDL_PenAxis
java.lang.Object
club.doki7.sdl3.enumtype.SDL_PenAxis
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.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
PRESSURE
public static final int PRESSURE- See Also:
-
XTILT
public static final int XTILT- See Also:
-
YTILT
public static final int YTILT- See Also:
-
DISTANCE
public static final int DISTANCE- See Also:
-
ROTATION
public static final int ROTATION- See Also:
-
SLIDER
public static final int SLIDER- See Also:
-
TANGENTIAL_PRESSURE
public static final int TANGENTIAL_PRESSURE- See Also:
-
COUNT
public static final int COUNT- See Also:
-
-
Method Details
-
explain
-