A graphical joystick tester
jstest-gtk is a simple joystick tester based on Gtk+. It provides you with a list of attached joysticks, a way to display which buttons and axis are pressed, a way to remap axis and buttons and a way to calibrate your joystick.
Even when your joystick is working mostly fine, you might want to give it a try, as the calibration lets you get rid of overlarge default deadzones that many joysticks use and then is a noticable problem in some games.
License: free
Requirements: Scons, gtkmm
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| no | yes | no | no | no | no | yes |
Submitted by grumbel on 2009-05-09.

Appears to require this too. Can't comment on the app. yet as I haven't got it to compile, but it looks interesting.
Debian testing:
By the way, I've apparently got the file from a package called libgtkmm-2.4-dev.
I have /usr/include/gdkmm-2.4/gdkmm/drawable.h as part of gtkmm-2.8.8-i486-1z28.tgz (Zenwalk package) and I don't have that function! The word cairo isn't in there at all in either case.
At the top of drawable.h it says :- if that's any use for anybody reading this in the future.
create_cairo_context is marked in the header with a "@newin2p10" Doxygen macro, which I guess means it was added in gtkmm 2.10 (and you have 2.8).
Looks like a very promising application. Not tested out the calibrations properly yet, but it looks good so far.
Since it allows multiple profiles (I guess for the calibration data), might it be worth allowing the user to rename them?