[Bf-committers] spaceball patch 3688

Nathan Letwory jesterking at letwory.net
Sat Mar 4 08:03:52 CET 2006


If I understood the discussion correctly, the libusb-solution works also
on Windows. I'd see this used rather than a DDK that is not necessarily
compatible with MingW. Anyway, if th SYSWMEVENT works reliable, that would
be very cool, of course.

/Nathan

On La 4.3.2006 0:23, Stealth Apprentice kirjoitti:
> I am considering the HID solution on Windows. My test
> program using the WinDDK shows the device
> successfully.
>
> My question there is that it requires a download of
> the Windows DDK from Microsoft, and I wasn't sure if
> that would be an obstacle for general Windows blender
> developers? The download is free, but I couldn't find
> a download without registering as a developer.
>
> On Linux, the non libusb solution involves something
> like open("fancydevice:") or some such, and then you
> have to deal with X events in the main loop. It's
> easy, but not very portable, and really hard to
> emulate on Windows.
>
> I did a bit of reading on the SDL approach, and came
> across this tidbit:
>
> http://aspn.activestate.com/ASPN/Mail/Message/pygame-users/2292374
>
> It appears that for spaceball, it might be possible to
> get the messages using the SYSWMEVENT message. If that
> works, WIndows wouldn't need WinDDK, 3dxware SDK,
> libusb or SDL...
>
> I will test it.
>
>
>
> --- Jean-Luc Peuri�re <jlp at nerim.net> wrote:
>
>>
>> Le 3 mars 06 � 21:28, Stealth Apprentice a �crit
> :
>>
>> >
>> > A little research turns up libusb as a
>> cross-platform
>> > method of accessing USB. I've done some testing
>> > libusb-win32, and it can see the device (and my
>> > joysticks, mice, etc)
>> >
>> > libusb is licensed under LGPL.
>> >
>> > Does it sound okay to everyone to pursue a libusb
>> > based solution?
>>
>>
>> I was thinking of using application-side drivers,
>> using the HID and EHCI interfaces. There is native
>> solutions for that on both windows and macosx, at
>> least for the range of input devices that interest
>> us.
>>
>> However as the linux situation is more blurry,
>> perhaps
>> the libusb solution is indeed better. this lib is
>> rather
>> new (but active). I have no idea of its quality.
>>
>> the documentation for it is rather sparse though.
>>
>> last solution is to use the SDL code already present
>> in game
>> engine but this code is limited and
>>
> primitive._______________________________________________
>> Bf-committers mailing list
>> Bf-committers at projects.blender.org
>>
> http://projects.blender.org/mailman/listinfo/bf-committers
>>
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>


/Nathan



More information about the Bf-committers mailing list