Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread René Dudfield
On Thu, Dec 3, 2009 at 6:26 PM, Brian Fisher wrote: > On Thu, Dec 3, 2009 at 8:54 AM, James Paige wrote: > >> ...Although that still doesn't explain why it has no problem with any of >> the non-SDL apps I have tested on Linux. >> >> pyglet is non-SDL, and you saw the same problem with pyglet, yeah

Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
On Thu, Dec 03, 2009 at 09:26:18AM -0800, Brian Fisher wrote: >On Thu, Dec 3, 2009 at 8:54 AM, James Paige >wrote: > > ...Although that still doesn't explain why it has no problem with any of > the non-SDL apps I have tested on Linux. > >pyglet is non-SDL, and you saw the s

Re: [pygame] loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
On Thu, Dec 03, 2009 at 05:04:05PM +, René Dudfield wrote: >Hi, > >I think this has to do with SDL and xevents. It's possible SDL can lose >events if they come in too fast. Since it tries to prevent flooding of >the event queue. Well it does for mouse events anyway. > >

Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread Brian Fisher
On Thu, Dec 3, 2009 at 8:54 AM, James Paige wrote: > ...Although that still doesn't explain why it has no problem with any of > the non-SDL apps I have tested on Linux. > > pyglet is non-SDL, and you saw the same problem with pyglet, yeah? So either SDL has some problem that pyglet also has, or t

Re: [pygame] loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread René Dudfield
Hi, I think this has to do with SDL and xevents. It's possible SDL can lose events if they come in too fast. Since it tries to prevent flooding of the event queue. Well it does for mouse events anyway. I can't remember if they fixed/changed stuff for the recent 1.2.14 release... but it's worth

Re: [pygame] loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
On Thu, Dec 03, 2009 at 12:12:14AM -0600, Jake b wrote: >Have you tried changing .key.set_repeat(something_small) ? I tried that, but it made no difference. >And how are you polling for the events? Here is my test code: #!/usr/bin/env python import pygame from pygame.locals import *

Re: [pygame] Re: loss of rapidly repeated keypresses (from a barcode gun keyboard)

2009-12-03 Thread James Paige
On Wed, Dec 02, 2009 at 04:39:00PM -0800, Brian Fisher wrote: >What that suggests to me is that the problem lies with the way the USB >barcode scanner interacts with system components, well below the >application layer. So like maybe with the HID driver or windowing system >of your

Re: [pygame] Make a sprite fall with realistic gravity?

2009-12-03 Thread Thomas Ibbotson
2009/12/3 Bill Coderre > > Now we have laptops and GUIs, and Alan and conspirators have been inventing > new programming systems with Squeak (a newer version of Smalltalk) as their > "assembly language core." Etoys is one of them, and if you haven't tried it, > you should.[1] > > > [1] http://www