Author Topic: Key codes (for Getkey() users)  (Read 20476 times)

0 Members and 2 Guests are viewing this topic.

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
Key codes (for Getkey() users)
« on: March 18, 2010, 04:23:06 pm »
Should be easier to find since these topics grows pretty fast. I think Quigibo should add them to the doc when he gets some free time.

53 52 51 50 49
54 55 56    4
             2    3
48 40 32    1
47 39 31 23 15
46 38 30 22 14
45 37 29 21 13
44 36 28 20 12
43 35 27 19 11
42 34 26 18 10
    33 25 17 9

Those are the keys of the calculator...  the pattern, basically, is just dereasing numbers asyou move down the rows and to the right, with the arrow keys and the top two rows being different

SirCmpwn

  • Guest
Re: Key codes (for Getkey() users)
« Reply #1 on: March 18, 2010, 05:21:22 pm »
I wrote a quick program earlier that tells me the keycodes when I press them, I have always found that a bit easier.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Key codes (for Getkey() users)
« Reply #2 on: March 18, 2010, 05:23:13 pm »
Isn't that the same layout for ASM? Just making sure since I'm not really familiar with it.
« Last Edit: March 18, 2010, 05:23:25 pm by meishe91 »
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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
Re: Key codes (for Getkey() users)
« Reply #3 on: March 18, 2010, 05:23:54 pm »
yeah that can be useful too. I guess it help to memorize some of them tho for some ppl ^^

@meishe91 I don't know ASM so I couldn,t tell. It's different from the BASIC one and the one shared between xLIB and Celtic III, though.

SirCmpwn

  • Guest
Re: Key codes (for Getkey() users)
« Reply #4 on: March 18, 2010, 05:26:10 pm »
The asm layout is completely different, you have to activate key groups, then you get back a byte with different bits set to represent different keys.  It appears to be the xLib layout, though, at first glance.

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
Re: Key codes (for Getkey() users)
« Reply #5 on: March 18, 2010, 05:29:30 pm »
Mhmm, strange, I swear it was different, but again, I haven't used xLIB in 3 years x.x

EDIT: After checking its readme, it definitively appears to be xLIB layout. I guess it should be more familiar to its users, then.
« Last Edit: March 18, 2010, 05:30:57 pm by DJ Omnimaga »

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #6 on: March 18, 2010, 05:32:24 pm »
The asm layout is completely different, you have to activate key groups, then you get back a byte with different bits set to represent different keys.  It appears to be the xLib layout, though, at first glance.
Yup, I'm pretty sure it is the xLib layout.  I've been using the xLib readme for key codes, so, yeah... ;D

*Ztrumpet prints this out...

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Key codes (for Getkey() users)
« Reply #7 on: March 18, 2010, 05:37:49 pm »
Oh, ya. Just saw that on TIBD that it is xLib, thanks.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #8 on: March 19, 2010, 02:40:44 pm »
So I guess I will make 41 the [on] key since it appears to be missing.  Nice layout!  I was going to add one, but I couldn't find one on the internet and I didn't want to spend time making my own.
« Last Edit: March 19, 2010, 02:40:57 pm by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

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
Re: Key codes (for Getkey() users)
« Reply #9 on: March 19, 2010, 02:49:10 pm »
Are you sure though? I wonder if the ON key works a bit differently. For example, if you press On duriong an Axe game, nothing will happen, but when exiting the program, the ERR:BREAK message will finally show up.


But I guess it doesn't hurt to try ^^

Offline Gale

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +1/-0
  • Ti-84+ Silver Edition
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #10 on: March 19, 2010, 03:05:31 pm »
yeah, on one of my axe programs i forgot to make a way to stop the Repeat loop, so i got stuck for a while with no ON key break P:
remember me as a time of day...

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
Re: Key codes (for Getkey() users)
« Reply #11 on: March 19, 2010, 03:54:08 pm »
I think this is actually the biggest risk of axe programming. If you forget to put an exit in your program or if you mess up and the code never reaches the exit button check, then yoU're screwed unless you did backups x.x

SirCmpwn

  • Guest
Re: Key codes (for Getkey() users)
« Reply #12 on: March 19, 2010, 04:22:57 pm »
I never keep anything in RAM anymore, it's too dangerous, especially now that I'm using Axe more often.  Here is an app that lets you do everything you could possibly want, while still keeping things in the archive: http://www.ticalc.org/archives/files/fileinfo/400/40029.html

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
Re: Key codes (for Getkey() users)
« Reply #13 on: March 19, 2010, 05:37:47 pm »
That one allowed editing archived programs? nice. I thought it was just some sort of rip-off from Noshell.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Key codes (for Getkey() users)
« Reply #14 on: March 19, 2010, 07:00:50 pm »
I still want ON breaking supported, even if it becomes an optional feature while compiling for debug mode :P