1al_set_haptic_autocenter(3)                        al_set_haptic_autocenter(3)
2
3
4

NAME

6       al_set_haptic_autocenter - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              bool al_set_haptic_autocenter(ALLEGRO_HAPTIC *hap, double intensity)
12

DESCRIPTION

14       Turns on or off the automatic centering feature of the haptic device if
15       supported.  Depending on the device automatic centering may ensure that
16       the axes of the device are centered again automatically after playing a
17       haptic effect.  The intensity parameter should be passed with  a  value
18       between  0.0  and 1.0.  The value 0.0 means automatic centering is dis‐
19       abled, and 1.0 means full strength automatic centering.  Any  value  in
20       between  those two extremes will result in partial automatic centering.
21       Some platforms do not support partial automatic centering.  If that  is
22       the  case,  a  value  of  less than 0.5 will turn it off, while a value
23       equal to or higher to 0.5 will turn it on.  Returns true if set sucess‐
24       fully,  false  if  not.  Can only work if al_get_haptic_capabilities(3)
25       returns  a  value  that  has   ALLEGRO_HAPTIC_AUTOCENTER(3)ALLEGRO_HAP‐
26       TIC_CONSTANTS(3) set.  If not, this function returns false.
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_set_haptic_autocenter(3)
Impressum