1al_play_haptic_effect(3) al_play_haptic_effect(3)
2
3
4
6 al_play_haptic_effect - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 bool al_play_haptic_effect(ALLEGRO_HAPTIC_EFFECT_ID *id, int loop)
12
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_haptic_ef‐
16 fect(3), al_upload_and_play_haptic_effect(3) or al_rumble_haptic(3).
17
18 The haptic effect will be played back loop times in sequence. If loop
19 is less than or equal to 1, then the effect will be played once only.
20
21 This function returns immediately and doesn't wait for the playback to
22 finish. It returns true if the playback was started successfully or
23 false if not.
24
26 5.1.8
27
28 [Unstable API]: Perhaps could be simplified due to limited sup‐
29 port for all the exposed features across all of the platforms.
30 Awaiting feedback from users.
31
32
33
34Allegro reference manual al_play_haptic_effect(3)