Author Topic: A GetKey that doesn't wait?  (Read 8547 times)

0 Members and 1 Guest are viewing this topic.

Offline FloppusMaximus

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 290
  • Rating: +57/-5
    • View Profile
Re: A GetKey that doesn't wait?
« Reply #15 on: November 02, 2010, 11:15:16 pm »
If I remember correctly, if you press the ON key during _getKey a flag is set which causes exactly what you want. If you set this flag manually, it might just work.
That's an interesting point.  I'm not sure if that would work or not.

(If not, a trivial GetKey hook could do the same thing.)

Offline calc84maniac

  • eZ80 Guru
  • Coder Of Tomorrow
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2912
  • Rating: +471/-17
    • View Profile
    • TI-Boy CE
Re: A GetKey that doesn't wait?
« Reply #16 on: November 02, 2010, 11:22:08 pm »
This seems to work:
Code: [Select]
set onInterrupt,(iy+onFlags)
bcall(_GetKey)
"Most people ask, 'What does a thing do?' Hackers ask, 'What can I make it do?'" - Pablos Holman

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: A GetKey that doesn't wait?
« Reply #17 on: November 02, 2010, 11:32:27 pm »
One thing I would like to point out is that everyone has to start somewhere and can do mistakes and snapping at people for not understanding something or a question or missing a bit of information in a post is generally not a welcome behavior on the forums, regardless of if it comes from an experienced or inexperienced programmer. It goes against the goal of the community and big risks can be taken in long terms if that happens too often.

I haven't followed every help topic thoroughly but in this one I noticed two posts had some rather onobxious responses to other messages.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)