Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alternative to Inkey
#1
Okay, I need someone to explain to me an alternative to the Inkey$.... because, I have noticed that it is for some reason sluggish (it never was before, but now it is) and I've seen some other people use &HD3A or something for theirs but I just don't understand how to use this, so, that is my question, please answer what an alternative to Inkey$ is in as newbie-ish way possible....thanks.
ovaProgramming.

One night I had a dream where I was breaking balls. The next morning, BALLSBREAKER was born.

Quote: Excellent. Now you can have things without paying for them.

BALLSBREAKER 2
~-_-Status Report-_-~
Engine: 94%
Graphics: 95%
Sound: 100%
A Severe Error has crippled BB2 for the time being... I have to figure it out, but until then you won't see much of it Sad.
-----------------------------
Reply
#2
inkey$ is not sluggish, it's just a different means of inputting keypresses. Try and hold a key in one of these text-boxes, you'll find it's exactly the same. inp(96) grabs the last keypress from the text buffer, in scan codes. there is no pause with it, so "x = inp(96)" is a decent alternative. But if you want multiple keypresses, while you can use inp(96), you'll want to use an asm routine like milo sedlacks multikey.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#3
Quote:milo sedlacks multikey.

did i miss something here, because from what i have seen, you treat this guy like a f**king god!!!, please, explain...
the mind is a beautiful thing, use it and make the world a more beautiful place.
Reply
#4
I certainly dont treat him like a god, it's just a very simple and very popular call absolute keyhandler, what's to explain?
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#5
Would somebody put Milo's code with a lil' explanation into the FAQ???

Because in the last month there's a new question about keyboard handling every week...
B 4 EVER
Reply
#6
I wouldnt, because it's an assembly library, and the library itself is self explanatory.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Reply
#7
Milo was an extremely talented programming, god rest his soul, and the reason I learnt ASM was to make an ASM engine like his. You just need to see Monospace to see the type of programming capabilities he had.

Multikey is not something that needs a lot of explaining. If you ask Uncle Google, he will tell you about lots of other assembly multikey routines. You can also have good keyhandling if you are willing to use only ctrl, alt and shift I think. Ask.

And for god sakes, why the hell don't you people put this on your amazing wiki thing, I mean thats what this is for isn't it. Akooma is right, this comes up about once a week.
·~¹'°¨°'¹i|¡~æthérFòx~¡|i¹'°¨°'¹~·-
avinash.vora - http://www.avinashv.net
Reply
#8
http://faq.qbasicnews.com/?blast=MiloSed...ardHandler
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#9
Quote:
Quote:milo sedlacks multikey.

did i miss something here, because from what i have seen, you treat this guy like a f**king god!!!, please, explain...

He's close. That I can tell ya.

Never met him though. :*(
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)