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

Possibly Related Threads…
Thread Author Replies Views Last Post
  _Putimage Question. Pete 11 712 01-04-2026, 09:33 PM
Last Post: Pete
  Nice simple, I hope, question Mad Axeman 4 360 12-20-2025, 09:28 PM
Last Post: SMcNeill
  NewBie Question niteflyer 2 348 11-06-2025, 07:11 PM
Last Post: Petr
  A Question About _MAPTRIANGLE Magdha 2 389 11-02-2025, 11:37 AM
Last Post: Magdha
  '$include: 'file.tmr' Timing Question pmackay 2 440 10-16-2025, 12:20 PM
Last Post: a740g

Forum Jump:


Users browsing this thread: 1 Guest(s)