I need to enter numbers through a numeric usb keyboard into a box in a pygame script. If I use the normal keyboard I can enter the numbers in upper zone of the keyboard. If I try to use the numpad I get letters like "à" for number 1. If I try to use only a numpad (Lindy) I can't get anything. My script, actually, is getting keys with this:
def get_key():
while 1:
event = pygame.event.poll()
if event.type == KEYDOWN:
return event.key
else:
pass
Where am I wrong, why can't get numbers from numpad? Thanks for the help