Omnimaga

Omnimaga => Completed => Our Projects => Grammer => Topic started by: malman on February 14, 2025, 01:16:35 pm

Title: Does Grammer support multiple key press detection?
Post by: malman on February 14, 2025, 01:16:35 pm
Someone on ticalc.org said that Grammer does not support multiple key press detection.
I was wandering if this is true.

If not, this should certainly be added.

Thanks!
Title: Re: Does Grammer support multiple key press detection?
Post by: Xeda112358 on February 14, 2025, 05:01:40 pm
It does. While plain "getKey" only returns a value for a single key, the "getKey(<key code>" command checks if a specific key is pressed. To check if multiple keys are pressed, like Enter+Up, just check if both getKey(9 and getKey(4 return 1.