1al_install_haptic(3) al_install_haptic(3)
2
3
4
6 al_install_haptic - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 bool al_install_haptic(void)
12
14 Installs the haptic (force feedback) device subsystem. This must be
15 called before using any other haptic-related functions. Returns true
16 if the haptics subsystem could be initialized correctly, false in case
17 of error.
18
19 For portability you should first open a display before calling
20 al_install_haptic(3). On some platforms, such as DirectInput under
21 Windows, al_install_haptic(3) will only work if at least one active
22 display is available. This display must stay available until al_unin‐
23 stall_haptic(3) is called.
24
25 If you need to close and reopen your active display for example, then
26 you should call al_uninstall_haptic(3) before closing the display, and
27 al_install_haptic(3) after opening it again.
28
30 5.1.8
31
32 [Unstable API]: Perhaps could be simplified due to limited sup‐
33 port for all the exposed features across all of the platforms.
34 Awaiting feedback from users.
35
36
37
38Allegro reference manual al_install_haptic(3)