Gmane
Favicon
From: Alexander Repenning <Alexander.Repenning@...>
Subject: Contribution: GameDevices.lisp for GamePads, JoySticks and 3D mice
Newsgroups: gmane.lisp.mcl.general
Date: 2003-12-03 22:36:26 GMT (5 years, 30 weeks, 4 days, 19 hours and 7 minutes ago)
if you work on games or scientific tools that could benefit from 
unconventional input devices here's the code. Hook up GamePad, 
JoySticks, 3D mice etc. to your Mac and access it from Lisp. With a 
little help from Apple this worked out well.

Make sure to point the framework path to wherever you put the 
.framework files. Load "frameworks.lisp" then "game-devices.lisp" 
Hookup some funky device and run the example.

http://agentsheets.com/lisp/gameDevices.zip

This is just an early version if you add code please share. It simple 
now to add more devices even multiple devices of the same kind, e.g., 
multiple game pad. Also, if you have especially great/terrible 
experiences with certain device please let me know.

ps: the framework loader is somewhat clobbered together. I remember 
seeing some code but could only find the Gary Byers older framework 
functions.

have fun

Prof. Dr. Alexander Repenning
vCard: http://www.cs.colorado.edu/~ralex/AlexanderRepenning.vcf