1al_install_haptic(3)                                      al_install_haptic(3)
2
3
4

NAME

6       al_install_haptic - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              bool al_install_haptic(void)
12

DESCRIPTION

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  al_in‐
20       stall_haptic(3).  On some platforms, such as DirectInput under Windows,
21       al_install_haptic(3) will only work if at least one active  display  is
22       available.   This  display  must stay available until al_uninstall_hap‐
23       tic(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

SINCE

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)
Impressum