I've added this:

pyglet.clock.schedule_interval(update, 1/60.0)

and it's working fine

On Fri, Oct 12, 2012 at 11:42 AM, Wallace Davidson <[email protected]>wrote:

> Yes, I've got this:
>
> keys = key.KeyStateHandler()
> window.push_handlers(keys)
>
> That makes sense now, thanks for the help guys :)
>
> On Fri, Oct 12, 2012 at 11:37 AM, Nathan <[email protected]> wrote:
>
>> On Thu, Oct 11, 2012 at 2:22 PM, Wallace Davidson 
>> <[email protected]>wrote:
>>
>>> I had thought the on_key_press one was to check when a key was pressed
>>> and the update function checked whether a key was held down. Is that right?
>>> :/
>>>
>>>
>> No.
>>
>> The update function is just a function.  If you want it to be called, you
>> need to make something call it.
>>
>> ~ Nathan
>> --
>> 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.
>>
>
>

-- 
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