1al_get_haptic_autocenter(3)                        al_get_haptic_autocenter(3)
2
3
4

NAME

6       al_get_haptic_autocenter - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              double al_get_haptic_autocenter(ALLEGRO_HAPTIC *hap)
12

DESCRIPTION

14       Returns  the  current automatic centering intensity of the device.  De‐
15       pending on the device automatic centering may ensure that the  axes  of
16       the  device are centered again automatically after playing a haptic ef‐
17       fect.  The return value can be between 0.0  and  1.0.   The  value  0.0
18       means  automatic centering is disabled, and 1.0 means automatic center‐
19       ing is enabled at full strength.  Any value in between  those  two  ex‐
20       tremes means partial automatic centering is enabled.  Some platforms do
21       not support partial automatic centering.  If that is the case, a  value
22       of  less  than  0.5  means  it is turned off, while a value equal to or
23       higher to 0.5 means it is turned on.   Can  only  work  if  al_get_hap‐
24       tic_capabilities(3)  returns  a  value that has ALLEGRO_HAPTIC_AUTOCEN‐
25       TER(3)ALLEGRO_HAPTIC_CONSTANTS(3) set.  If not, this  function  returns
26       0.0.
27

SINCE

29       5.1.9
30
31              [Unstable  API]: Perhaps could be simplified due to limited sup‐
32              port for all the exposed features across all of  the  platforms.
33              Awaiting feedback from users.
34
35
36
37Allegro reference manual                           al_get_haptic_autocenter(3)
Impressum