Hi

I dont think wxPython joystick is fully developed for OSX, at least the 
last time I tried it wasnt ... maybe now it is working? please let me 
know I am interested on this.

enrike

Mike Lawrence(e)k dio:
> Further googling led me to some source code that used wx (http://
> www.wxpython.org) to get joystick input. As wx is installed by default
> in Mac OS X 10.5, this seems almost too easy...
> 
> import wx
> app = wx.PySimpleApp()
> j=wx.Joystick()
> 
> Darn, it looks like wx.Joystick objects only support 1 digital
> joystick, whereas my gamepad has 2 analog joysticks. I can switch my
> gamepad's analog mode off, but that likely reduces the resolution and
> I still don't have the use of the second joystick.
> 
> Well, at least the buttons work.
> 
> On Jan 22, 8:58 pm, Andrew Straw <[EMAIL PROTECTED]> wrote:
>> One could write a libhid-based driver which would theoretically work in
>> Windows, Mac OS X, and linux. However, HID devices are claimed by the
>> Mac OS X kernel, making this idea more difficult on the Mac as far as I
>> know:http://lists.alioth.debian.org/pipermail/libhid-discuss/2007-April/00...
>>
>> Alex Holkner wrote:
>>> On 1/23/08, Mike Lawrence <[EMAIL PROTECTED]> wrote:
>>>> Hi all,
>>>> I've managed to switch my programming *almost* completely from pygame
>>>> to pyglet now. This switch was motivated primarily because I use Mac
>>>> OS 10.5, which comes with python 2.5 installed by default, forcing one
>>>> to install python 2.4 if you want to use pygame. I say the switch is
>>>> *almost* complete because I desperately need joystick input for my
>>>> programs (I write cognitive science experiments).
>>>> Does anyone have any suggestions as to how I can achieve joystick
>>>> input without reverting to python 2.4 and using pygame?
>>> The relevant Apple docs are
>>> http://developer.apple.com/documentation/DeviceDrivers/Conceptual/HID...
>>> Looks like quite a bit of work..
>>> Alex.
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to