[sldev] adding support for a new input device to the SL viewer

Ettore Pasquini ettore_pasquini at 3dconnexion.com
Wed Sep 19 12:10:25 PDT 2007


On 9/13/07 3:53 PM, "Callum Lerwick" <seg at haxxed.com> wrote:

> On Thu, 2007-09-13 at 14:06 -0700, Ettore Pasquini wrote:
>> - I developed an open source library to have a cross-platform API to access
>> the device. The implementation is DI on Win and HID on OS X, any other
>> platforms can be added by just implementing a few functions. This makes
>> viewer code unaware of the underlying implementation.
>> - I am refactoring the joystick implementation to use the above library.
> 
> Is there a reason you can't just use SDL's joystick layer rather than
> reinventing more wheels?

Actually there is. Currently the flycam on Windows works nicely with a few
calls to DirectInput: I didn't want to radically change already working
code. I wanted to minimize any possible breakage.

Ettore



More information about the SLDev mailing list