Allegro-360
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:A simple example of using Allegro's joystick system with an Xbox 360 controller.
This is a simple example of how to use an Xbox 360 controller with the Allegro library. The font is provided to make running the program easier, because Allegro 5 doesn't provide a default font.

Make sure allegro is installed (including the modules allegro\_font and allegro\_ttf) and compile with:

    clang -o main src/*.c -lallegro -lallegro_font -lallegro_ttf

Running it will open up a blank allegro display with text values written on-screen showing the current state of the controller. NOTE: to avoid possible errors, make sure that the controller is plugged in before running and that it is the only controller plugged in. The program defaults to the first joystick (in allegro terms) found, and doesn't do any extra checking.

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。