Eu2.1: get_key(): how know when RELEASED
- Posted by Dan B Moyer <DANMOYER at PRODIGY.NET> Aug 26, 2000
- 452 views
Anyone know how I can tell when a key is RELEASED? As far as I can tell, get_key returns a bunch of -1's even when a key IS pressed, and tosses in the actual key pressed every once and a while; it does that fast enough & often enough to allow "if get_key() != -1" to pick up the sporadic instance of not -1 when it occurs, but makes an "else =-1" not able to signify no key pressed, because of all the -1's spit out along even when an actual key is pressed. Am I misunderstanding something here? Dan