Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
23 May, 2013, 15:23:35 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1]   Go Down
  Print  
Author Topic: Key Group Check Program -  (Read 1950 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
ztrumpet
The Rarely Active One
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Yesterday at 03:10:30
Date Registered: 08 November, 2009, 21:10:12
Location: Michigan
Posts: 5687


Topic starter
Total Post Ratings: +360

View Profile
« on: 28 October, 2010, 23:44:11 »
+4

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... Grin

Topic to reference: http://www.omnimaga.org/index.php?topic=5045.0

Enjoy, and source is included.  Cheesy

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. Azn

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


* KeyGroupScreenie.gif (38.39 KB, 192x128 - viewed 381 times.)
* KEYGROUP.8xp (1.72 KB - downloaded 111 times.)
* KYGRPSRC.8xp (1.35 KB - downloaded 81 times.)
Logged

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 13:23:09
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50226


Total Post Ratings: +2615

View Profile WWW
« Reply #1 on: 28 October, 2010, 23:46:09 »
0

Nice, that might come handy to check if certain key combinations are possible or not
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 22:35:58
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #2 on: 28 October, 2010, 23:46:47 »
0

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
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
yunhua98
You won't this read sentence right.
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2012, 03:06:37
Date Registered: 26 May, 2010, 22:58:45
Location: Somewhere in Deep Space.
Posts: 2717


Total Post Ratings: +199

View Profile
« Reply #3 on: 28 October, 2010, 23:46:48 »
0

Nice!  thias will be really useful for all Maxcoderz!
Quigibo should really include this in the tools foder for Axe.  Wink
« Last Edit: 28 October, 2010, 23:47:07 by yunhua98 » Logged


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

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

DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 13:23:09
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50226


Total Post Ratings: +2615

View Profile WWW
« Reply #4 on: 29 October, 2010, 02:37:40 »
0

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 Grin
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #5 on: 30 October, 2010, 23:58:54 »
0

I wrote a really crude version of this at one point, but yours has boxes! Tongue
Nice job. Smiley
« Last Edit: 30 October, 2010, 23:59:04 by calcdude84se » Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 07:05:51
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1850


Total Post Ratings: +238

View Profile
« Reply #6 on: 31 October, 2010, 00:39:25 »
0

I wrote a really crude version of this at one point, but yours has boxes! Tongue
Nice job. Smiley
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 Grin
or maxcoderz could make an axecoderz subforum Tongue
Logged



We're not human, are we?
meishe91
Super Ninja
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 May, 2013, 23:54:14
Date Registered: 05 March, 2010, 05:39:48
Posts: 2965


Total Post Ratings: +102

View Profile WWW
« Reply #7 on: 31 October, 2010, 01:37:34 »
0

This looks quite cool, but what does it do exactly?
Logged





For the 51st time, that is not my card! (Magic Joke)
shmibs
bonsai bok choy wiseguy waterboy
Administrator
LV10 31337 u53r (Next: 2000)
*
Offline Offline

Last Login: Today at 07:05:51
Date Registered: 11 June, 2010, 19:36:15
Location: 89B6
Posts: 1850


Total Post Ratings: +238

View Profile
« Reply #8 on: 31 October, 2010, 03:37:56 »
0

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.
Logged



We're not human, are we?
yunhua98
You won't this read sentence right.
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2012, 03:06:37
Date Registered: 26 May, 2010, 22:58:45
Location: Somewhere in Deep Space.
Posts: 2717


Total Post Ratings: +199

View Profile
« Reply #9 on: 31 October, 2010, 04:05:51 »
0

We should have a usergroup called AxeCoderz for people who are epic at Axe.  Tongue
Logged


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

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

Happybobjr
James Oldiges
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: Yesterday at 22:35:58
Date Registered: 01 June, 2010, 00:52:05
Location: IN, United States
Posts: 2273


Total Post Ratings: +100

View Profile
« Reply #10 on: 31 October, 2010, 05:58:04 »
0

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.
Logged

School: East Central High School

Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Non-Cas |||  OS: 1.1 |||  Build: Old  |||  84+ keypad.   Being lent out
____________________________________________________________
Deep Thought
So much to do, so much time, so little motivation
Administrator
LV13 Extreme Addict (Next: 9001)
*
Offline Offline

Gender: Male
Last Login: Today at 03:56:01
Date Registered: 19 May, 2009, 08:00:00
Location: The Universe
Posts: 7813


Total Post Ratings: +706

View Profile WWW
« Reply #11 on: 31 October, 2010, 06:35:37 »
0

Whoa, looks really nice! Especially the key layout thing.
Logged




meishe91
Super Ninja
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 02 May, 2013, 23:54:14
Date Registered: 05 March, 2010, 05:39:48
Posts: 2965


Total Post Ratings: +102

View Profile WWW
« Reply #12 on: 31 October, 2010, 07:25:16 »
0

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.
Logged





For the 51st time, that is not my card! (Magic Joke)
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.613 seconds with 30 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.