---
name: "al_get_keyboard_event_source"
section: "3"
platform: "linux"
package: "allegro"
version: "5.2.11.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/al_get_keyboard_event_source"
---

# al\_get\_keyboard\_event\_source(3)

Allegro 5 API

## NAME

al\_get\_keyboard\_event\_source - Allegro 5 API

## SYNOPSIS

-

  ```
  #include <allegro5/allegro.h>
  ALLEGRO_EVENT_SOURCE *al_get_keyboard_event_source(void)
  ```

## DESCRIPTION

Retrieve the keyboard event source. All \[keyboard events\]ALLEGRO\_EVENT\_KEY\_DOWN(3) are generated by this event source.

Returns NULL if the keyboard subsystem was not installed.
