Eu2.1: get_key(): how know when RELEASED

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu