Author Topic: Does Grammer support multiple key press detection?  (Read 75 times)

0 Members and 2 Guests are viewing this topic.

Offline malman

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 6
  • Rating: +0/-0
  • "Truth is treason in the empire of lies" -Ron Paul
    • View Profile
Does Grammer support multiple key press detection?
« 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!
"Jesus saith unto him, I am the way, the truth, and the life: no man cometh unto the Father, but by me." (John 14:6)

"For the wages of sin is death; but the gift of God is eternal life through Jesus Christ our Lord." (Romans 6:23)

"For God so loved the world, that he gave his only begotten Son, that whosoever believeth in him should not perish, but have everlasting life." (John 3:16)

"Verily, verily, I say unto you, He that heareth my word, and believeth on him that sent me, hath everlasting life, and shall not come into condemnation; but is passed from death unto life." (John 5:24)

"[5] But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness. [6] Even as David also describeth the blessedness of the man, unto whom God imputeth righteousness without works, [7] Saying, Blessed are they whose iniquities are forgiven, and whose sins are covered. [8] Blessed is the man to whom the Lord will not impute sin." (Romans 4:5-8)

"For whosoever shall call upon the name of the Lord shall be saved." (Romans 10:13)

directions2heaven.com

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4705
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Does Grammer support multiple key press detection?
« Reply #1 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.