Τη Πέμπτη, 5 Απριλίου 2018 - 2:10:55 μ.μ. UTC+3, ο χρήστης Greg Ewing 
έγραψε:
>
>
> ........
> It returns a map telling you which keys are being 
> held down at the moment you call it. That's what it 
> means by 'state'. 
>
> -- 
> Greg 
>

I understand the semantics i think. But the devil ise hidden in the details.
The point that made my curious and littlie anxious for the unpredictable 
behavior of such 
an introductory tutorial is what we mean by 'moment' . key.get_pressed() 
will be called in moments A and B , and will return 
that button UP is pressed. So button UP was pressed down both moments A and 
B.  The case of state's duration be only the
smalled time granularity the system supports would be impractical . Maybe 
you'd never catch the key pressed. So you keep 
the state for some duration. How long is that duration ? and could be set 
by the programmer?

chomwitt

Reply via email to