1al_upload_haptic_effect(3)                          al_upload_haptic_effect(3)
2
3
4

NAME

6       al_upload_haptic_effect - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              bool al_upload_haptic_effect(ALLEGRO_HAPTIC *hap,
12                 ALLEGRO_HAPTIC_EFFECT *effect, ALLEGRO_HAPTIC_EFFECT_ID *id)
13

DESCRIPTION

15       Uploads  the  haptic effect to the device.  The haptic effect must have
16       been filled in completely and correctly.   You  must  also  pass  in  a
17       pointer  to  a user allocated ALLEGRO_HAPTIC_EFFECT_ID(3).  This id can
18       be used to control playback of the effect.  Returns true if the  effect
19       was successfully uploaded, false if not.
20
21       The  function al_get_max_haptic_effects(3) returns how many effects can
22       be uploaded to the device at the same time.
23
24       The same haptic effect can be uploaded several times, as long  as  care
25       is taken to pass in a different ALLEGRO_HAPTIC_EFFECT_ID(3).
26

SINCE

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