Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A C+SDL+Cairo demo. Test combined joystick / keyboard input.

tree: e335f01e92

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 Makefile
Octocat-spinner-32 README.markdown
Octocat-spinner-32 foo.c
Octocat-spinner-32 screenshot.png


A C+SDL+Cairo demo. Test combined joystick / keyboard input. Based on acdimalev-demo-2010-04-21-01.

You must have Cairo and SDL installed to build this demo.

This demo was developed on a Debian Lenny system with the following dev packages installed:

  • libcairo2-dev=1.6.4-7
  • libsdl1.2-dev=1.2.13-2

To build and execute the demo, run "make" and then "./foo".

$ make
$ ./foo

The demo will pop up in a window, and may be closed with the q key. You can then use the following controls to manipulate the triangle:

  • Keyboard ** LEFT — steer left ** RIGHT — steer right ** UP — gas
  • Xbox 360 Controller ** Left Thumbstick — steer ** Right Trigger — gas
Something went wrong with that request. Please try again.