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

Re: [pygame] Numeric keypad



You need to specifically get teh keyboard keys:

K_0 becomes K_KP0
etc.

On Tue, Aug 11, 2009 at 8:16 PM, PierreLafrance1@xxxxxxxxxxxx <PierreLafrance1@xxxxxxxxxxxx> wrote:
Hi
I'm trying to get value from numeric keypad, but K_0 ... K_9 doesn't work.
Numeric value on alpha keybord works.

Can I use numeric keypad ?

ex:
if event.type == KEYDOWN and event.key == K_0 :
   DoSomething()

Thanks

--
Pierre Lafrance
--