Author Topic: Disabling keys  (Read 2172 times)

0 Members and 1 Guest are viewing this topic.

Shazane Koronova

  • Guest
Disabling keys
« on: August 15, 2007, 11:25:00 am »
I'd like to disable the ON key while running a game so the loops cannot be broken...

Is this possible in Basic?  If it's something I would have to write in Assembly then has anyone already written such a method?

Offline Speler

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 857
  • Rating: +6/-2
    • View Profile
Disabling keys
« Reply #1 on: August 15, 2007, 11:41:00 am »
This cannot be done in pure Basic (at least in a controllable manner).  Here's an asm subroutine that does this for you however: http://www.ticalc.org/archives/files/fileinfo/330/33039.html

Note:  Do NOT use this unless you are sure your program is completely bug free.

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
Disabling keys
« Reply #2 on: August 15, 2007, 02:36:00 pm »
Great program, just make sure you have an exit :Ptongue.gif...

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Disabling keys
« Reply #3 on: August 15, 2007, 04:19:00 pm »
yea true i remember trying a program jbirk on uti made like this back in 2003 and forgot to add an exit in rl3 XDsmiley.gif