Nilorea Library
C utilities for networking, threading, graphics
Loading...
Searching...
No Matches
n_allegro5.h
Go to the documentation of this file.
1/*
2 * Nilorea Library
3 * Copyright (C) 2005-2026 Castagnier Mickael
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
14 * implied. See the License for the specific language governing
15 * permissions and limitations under the License.
16 *
17 * SPDX-License-Identifier: Apache-2.0
18 */
19
27
28#ifndef __NILOREA_ALLEGRO5_HELPER__
29#define __NILOREA_ALLEGRO5_HELPER__
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
39
40#include <allegro5/allegro.h>
41#include <allegro5/allegro_font.h>
42#include <allegro5/allegro_image.h>
43#include <allegro5/allegro_primitives.h>
44#include <allegro5/allegro_native_dialog.h>
45#include <allegro5/allegro_ttf.h>
46
47#ifdef get_keyboard
48/* n_allegro_4.h came first: its get_keyboard macro must not rename this
49 * prototype, so declare it under its own name and put the macro back */
50#undef get_keyboard
52int get_keyboard(ALLEGRO_USTR* str, ALLEGRO_EVENT event);
53#define get_keyboard a4_get_keyboard
54#else
56int get_keyboard(ALLEGRO_USTR* str, ALLEGRO_EVENT event);
57#endif
58
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* #ifndef __NILOREA_ALLEGRO5_HELPER__ */
#define get_keyboard
the old nilorea name of a4_get_keyboard()