1al_play_haptic_effect(3)                              al_play_haptic_effect(3)
2
3
4

NAME

6       al_play_haptic_effect - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              bool al_play_haptic_effect(ALLEGRO_HAPTIC_EFFECT_ID *id, int loop)
12

DESCRIPTION

14       Plays  back a previously uploaded haptic effect.  The play_id must be a
15       valid   ALLEGRO_HAPTIC_EFFECT_ID(3)   obtained   from    al_upload_hap‐
16       tic_effect(3),  al_upload_and_play_haptic_effect(3)  or  al_rumble_hap‐
17       tic(3).
18
19       The haptic effect will be played back loop times in sequence.  If  loop
20       is less than or equal to 1, then the effect will be played once only.
21
22       This  function returns immediately and doesn't wait for the playback to
23       finish.  It returns true if the playback  was  started  sucessfully  or
24       false if not.
25

SINCE

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