---
name: "al_set_event_source_data"
section: "3alleg5"
platform: "linux"
package: "allegro5-doc"
version: "2:5.2.10.1+dfsg-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/al_set_event_source_data/3alleg5"
---

# al\_set\_event\_source\_data(3alleg5)

Allegro 5 API

## NAME

al\_set\_event\_source\_data - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  void al_set_event_source_data(ALLEGRO_EVENT_SOURCE *source, intptr_t data)
  ```

## DESCRIPTION

Assign the abstract user data to the event source. Allegro does not use the data internally for anything; it is simply meant as a convenient way to associate your own data or objects with events.

## SEE ALSO

al\_get\_event\_source\_data(3alleg5)
