Warning: A non-numeric value encountered in /home/fixbyp5/public_html/wp-content/themes/Divi/functions.php on line 5752

This post is a portion of Part 3 in my on going series about 2D Game Development using the Allegro 5 library. These posts are in course order. You can see all of the posts in this course by clicking the “2D Game Development” button at the top of this site.

In this video we will be looking at the basic usage of keyboard input in Allegro 5. We will look at two new variable types:

ALLEGRO_EVENT_QUEUE *
ALLEGRO_EVENT

Source code can be found here.

Notice that the source code is slightly different from the video? Here is why.