1al_get_haptic_autocenter(3) al_get_haptic_autocenter(3)
2
3
4
6 al_get_haptic_autocenter - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 double al_get_haptic_autocenter(ALLEGRO_HAPTIC *hap)
12
14 Returns the current automatic centering intensity of the device.
15 Depending on the device automatic centering may ensure that the axes of
16 the device are centered again automatically after playing a haptic
17 effect. 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
20 extremes means partial automatic centering is enabled. Some platforms
21 do not support partial automatic centering. If that is the case, a
22 value of less than 0.5 means it is turned off, while a value equal to
23 or 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
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)