Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about _KeyDown
#6
(09-16-2024, 07:53 PM)Pete Wrote: Oh just write a custom keyboard input routine you lazy varmint!

or...

Code: (Select All)
Do
    Input a
    Sleep 1
Loop Until _KeyDown(27)

Now you don't need no stinkin' null value... but ya gotta be quick!

Pete Big Grin Big Grin Big Grin
It looks like you just won the award you were fretting about in another post. Big Grin

(09-16-2024, 07:44 PM)Kernelpanic Wrote: Thanks for the answers!

DSMan195276, yes, that's right! It would be a good notice in the wiki for KeyDown

Terry, I know that one can end the loop in another way, but this about KeyDown was unknown me.
In lesson 7 of the tutorial I cover all the different methods of using keyboard input.

https://www.qb64tutorial.com/lesson7

And then in lesson 21 I cover the _DEVICES and _BUTTON statements and how they can be used as keyboard inputs as well.

https://www.qb64tutorial.com/lesson21

When you get a chance check them out. Lots of good stuff in there.
New to QB64pe? Visit the QB64 tutorial to get started.
QB64 Tutorial
Reply


Messages In This Thread
Question about _KeyDown - by Kernelpanic - 09-16-2024, 06:46 PM
RE: Question about _KeyDown - by DSMan195276 - 09-16-2024, 06:52 PM
RE: Question about _KeyDown - by TerryRitchie - 09-16-2024, 07:28 PM
RE: Question about _KeyDown - by Kernelpanic - 09-16-2024, 07:44 PM
RE: Question about _KeyDown - by Pete - 09-16-2024, 07:53 PM
RE: Question about _KeyDown - by TerryRitchie - 09-16-2024, 08:00 PM
RE: Question about _KeyDown - by Kernelpanic - 09-16-2024, 09:07 PM
RE: Question about _KeyDown - by Pete - 09-16-2024, 09:41 PM



Users browsing this thread: 5 Guest(s)