[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Lightning Talk Timer



not sure if this is correct to do but I have a question re. Pygame.

Is it faster to set the number of keys being scanned rather than scanning the entire keyboard, mouse etc. when getting input in Pygame. I mainly need the mouse, arrow keys, , q,2,w,3,e,r,5,t,6,y,7,u,i9,o,0,p,,[,=,] keys ( to simulate a 1 1/2 octave MIDI keyboard), the space bar and the Esc keys only which are a lot less than the whole lot. Can I Limit to only these keys with Pygame.event.set_allowed()
or
is there a better way to do this?

Please pardon if i asked the question in the wrong place.


On Wed, Mar 19, 2014 at 10:05 PM, Renà Dudfield <renesd@xxxxxxxxx> wrote:
Very cool :)Â Thanks for sharing.



--
Diliup Gabadamudalige


http://www.diliupg.com
http://soft.diliupg.com/

**********************************************************************************************
This e-mail is confidential. It may also be legally privileged. If you are not the intended recipient or have received it in error, please delete it and all copies from your system and notify the sender immediately by return e-mail. Any unauthorized reading, reproducing, printing or further dissemination of this e-mail or its contents is strictly prohibited and may be unlawful. Internet communications cannot be guaranteed to be timely, secure, error or virus-free. The sender does not accept liability for any errors or omissions.
**********************************************************************************************