Thank you so much! It's working now and I really appreciate it! On Wednesday, April 26, 2017 at 9:53:31 PM UTC-4, Kale Kundert wrote: > > The KeyStateHandler can take care of some of this logic automatically. > This is > from the docs: > > # > > http://pyglet.readthedocs.io/en/pyglet-1.2-maintenance/programming_guide/keyboard.html#remembering-key-state > > from pyglet.window import key > > window = pyglet.window.Window() > keys = key.KeyStateHandler() > window.push_handlers(keys) > > # Check if the spacebar is currently pressed: > if keys[key.SPACE]: > pass >
-- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
