No, you simply have to initialize pygame and the joystick module, for
example:

import pygame
pygame.init()
pygame.joystick.init()
joystick = pygame.joystick.Joystick(0)
joystick.init()

Which does not create spare windows anywhere.


On Dec 24, 7:25 pm, "Adam Bark" <[EMAIL PROTECTED]> wrote:
> Doesn't pygame require that I initialise the display first though? I don't
> really want a spare window sitting around doing nothing.
>
> On 24/12/2007, Drew Smathers <[EMAIL PROTECTED]> wrote:
>
>
>
> > The easiest thing to do is just use joystick support from pygame.  There
> > is nothing that prevents you from using modules from pygame in a pyglet
> > application, though this does impose SDL as a dependency - which is somewhat
> > cumbersome.  However, it is easy enough to structure your program to make
> > this a optional dependency for optional joystick support.
>
> > On Dec 24, 2007 1:55 PM, Adam Bark <[EMAIL PROTECTED]> wrote:
>
> > > Is there anyway to use a joystick with pyglet?
>
> > --
> > \\\\\/\"/\\\\\\\\\\\
> > \\\\/ // //\/\\\\\\\
> > \\\/  \\// /\ \/\\\\
> > \\/ /\/ / /\/ /\ \\\
> > \/ / /\/ /\  /\\\ \\
> > / /\\\  /\\\ \\\\\/\
> > \/\\\\\/\\\\\/\\\\\\
> >               d.p.s
--~--~---------~--~----~------------~-------~--~----~
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