Results 1 to 4 of 4

Thread: anykey

  1. #1
    Member DirectuX's Avatar
    Join Date
    Oct 2018
    Location
    France
    Posts
    417
    Rep Power
    55

    Question anykey

    Hi,
    I can't find a key equate for "anykey" to use with tbgl_GetWindowKeyState or TBGL_GetWindowKeyOnce,
    something that has the behaviour of the console-module's "WaitKey".

    How would you do that with uses "TBGL" and without uses "console" ?
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,153
    Rep Power
    736
    Hi,

    there is no such thing, but you can have a look at:
    TBGL_GetWindowAnyKeyState

    While it is documented for "up to" 4 keys, you can supply as many keys as you want.

    I am curious about the use case for "Waitkey" in the context of a graphical application.


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    Member DirectuX's Avatar
    Join Date
    Oct 2018
    Location
    France
    Posts
    417
    Rep Power
    55
    Quote Originally Posted by Petr Schreiber View Post
    I am curious about the use case for "Waitkey" in the context of a graphical application.
    Petr


    Nothing that can't be workaround :

    Modal help information is displayed for the user, I wanted that "any key" pressed quit this "popup" and returned to the main program rather than "hit *that* key to return"
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  4. #4
    Member DirectuX's Avatar
    Join Date
    Oct 2018
    Location
    France
    Posts
    417
    Rep Power
    55

    Lightbulb

    Another use I can think of is sort of "input configuration" , something like press the key for "UP" ...
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •