logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_STANDARD_GRAVITY - A constant to represent standard gravity for accelerometer sensors.

Availability

       This macro is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                            SDL_STANDARD_GRAVITY(3)

Description

       The  accelerometer  returns  the  current  acceleration in SI meters per second squared. This measurement
       includes the force of gravity, so a device at rest will have an value of SDL_STANDARD_GRAVITY  away  from
       the center of the earth, which is a positive Y value.

Name

       SDL_STANDARD_GRAVITY - A constant to represent standard gravity for accelerometer sensors.

Synopsis

#include<SDL3/SDL_sensor.h>#defineSDL_STANDARD_GRAVITY9.80665f

See Also