Creating a new input event dispatcher in Pyglet (infra red input)
问题 I recently asked this question in the pyglet-users group, but got response, so I'm trying here instead. I would like to extend Pyglet to be able to use an infra red input device supported by lirc. I've used pyLirc before ( http://pylirc.mccabe.nu/ ) with PyGame and I want to rewrite my application to use Pyglet instead. To see if a button was pressed you would typically poll pyLirc to see if there is any button presses in its queue. My question is, what is the correct way in Pyglet to