Author Topic: Key Group Check Program  (Read 7503 times)

0 Members and 1 Guest are viewing this topic.

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
Key Group Check Program
« on: October 28, 2010, 05:44:11 pm »
Here's a program I threw together in Axe for checking key groups.  It's used to check various combinations of keys to make sure they don't interfere with each other.  For example, press all of the arrows and then Graph... ;D

Topic to reference: http://ourl.ca/7642

Enjoy, and source is included.  :D

Also, you may get an Err: Break on exit depending on the shell (or lack of) that you use since [On] is used to exit.  It's compiled for Ion, so it will work from all shells. ^-^

Thanks:
Quigibo - Axe Parser
Calc84maniac - [On] routine

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 Group Check Program
« Reply #1 on: October 28, 2010, 05:46:09 pm »
Nice, that might come handy to check if certain key combinations are possible or not

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Key Group Check Program
« Reply #2 on: October 28, 2010, 05:46:47 pm »
amazing.  When i saw the title i just expected a noob showing off.  But this is great.

(i wish i had this for the etch-a-sketch
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Key Group Check Program
« Reply #3 on: October 28, 2010, 05:46:48 pm »
Nice!  thias will be really useful for all Maxcoderz!
Quigibo should really include this in the tools foder for Axe.  ;)
« Last Edit: October 28, 2010, 05:47:07 pm by yunhua98 »

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

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 Group Check Program
« Reply #4 on: October 28, 2010, 08:37:40 pm »
Lol I totally didn't thought about AxeCoderz. Now if MaxCoderz did not exist and if we seeked for a new name and only did Axe programming, we could almost become AxeCoderz ;D

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Key Group Check Program
« Reply #5 on: October 30, 2010, 05:58:54 pm »
I wrote a really crude version of this at one point, but yours has boxes! :P
Nice job. :)
« Last Edit: October 30, 2010, 05:59:04 pm by calcdude84se »
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Key Group Check Program
« Reply #6 on: October 30, 2010, 06:39:25 pm »
I wrote a really crude version of this at one point, but yours has boxes! :P
Nice job. :)
yes, the graphics are very helpful. thanks a lot, ztrumpet!
Lol I totally didn't thought about AxeCoderz. Now if MaxCoderz did not exist and if we seeked for a new name and only did Axe programming, we could almost become AxeCoderz ;D
or maxcoderz could make an axecoderz subforum :P

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Key Group Check Program
« Reply #7 on: October 30, 2010, 07:37:34 pm »
This looks quite cool, but what does it do exactly?
Spoiler For Spoiler:



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

Offline shmibs

  • しらす丼
  • Administrator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2132
  • Rating: +281/-3
  • try to be ok, ok?
    • View Profile
    • shmibbles.me
Re: Key Group Check Program
« Reply #8 on: October 30, 2010, 09:37:56 pm »
well, each key on the calc keyboard has a bit assigned to it which is set when pressed and reset when not pressed. however, it doesnt really have it's own because(i guess?) it would take too long for the processor to go through and check a bit for every single key every time it want's to know what keys are pressed down and so the keys are instead broken into several keygroups. the processor then has to indicate which keygroup it wants to check and then which bit it want's to check. for some reason, certain combinations of keys will return the value of others when they are pressed because of this? i would have to read up on this again as the last time i did was over a year ago. thepenguin or any of the other asm programmers could actually explain it.
the purpose of this program is to display graphically what keys the processor is reading as being pressed down, which can then be compared with what keys are actually being pressed to ensure that a certain key combo that may be used in your game wont trigger another key that does something completely different.

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Key Group Check Program
« Reply #9 on: October 30, 2010, 10:05:51 pm »
We should have a usergroup called AxeCoderz for people who are epic at Axe.  :P

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Key Group Check Program
« Reply #10 on: October 30, 2010, 11:58:04 pm »
or we could have a one big collection of programs and screenies, so if you don't know the name or existence of a prog. it can be found quite nicely.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Key Group Check Program
« Reply #11 on: October 31, 2010, 12:35:37 am »
Whoa, looks really nice! Especially the key layout thing.




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Key Group Check Program
« Reply #12 on: October 31, 2010, 01:25:16 am »
well, each key on the calc keyboard has a bit assigned to it which is set when pressed and reset when not pressed. however, it doesnt really have it's own because(i guess?) it would take too long for the processor to go through and check a bit for every single key every time it want's to know what keys are pressed down and so the keys are instead broken into several keygroups. the processor then has to indicate which keygroup it wants to check and then which bit it want's to check. for some reason, certain combinations of keys will return the value of others when they are pressed because of this? i would have to read up on this again as the last time i did was over a year ago. thepenguin or any of the other asm programmers could actually explain it.
the purpose of this program is to display graphically what keys the processor is reading as being pressed down, which can then be compared with what keys are actually being pressed to ensure that a certain key combo that may be used in your game wont trigger another key that does something completely different.

Ah ok, gotcha. Guess I just don't really use Axe/assembly enough to really run into this issue.
Spoiler For Spoiler:



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