Results 1 to 3 of 3

Thread: Behaviour of TBGL_GetAsyncKeyState?

  1. #1

    Behaviour of TBGL_GetAsyncKeyState?

    Hi,

    running some old scripts, I noticed that TBGL_GetAsyncKeyState behaves like an KeyPressed function. It returns TRUE continiously as long as the key is pressed.

    Is there anything like a KeyHit functionality, that only returns TRUE once, till it is released and pressed again?

  2. #2
    Hehe, guess I didn't use TB for a long time. Found the answer. I have to use

    TBGL_GetWindowKeyOnce for that.

  3. #3
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732
    Haha,

    right you are Mike, that is the one to pick


    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

Similar Threads

  1. strange behaviour getwindowkeystate
    By martin in forum thinBasic General
    Replies: 4
    Last Post: 21-07-2009, 06:48
  2. Debugger behaviour
    By RobertoBianchi in forum thinBasic General
    Replies: 0
    Last Post: 26-09-2004, 14:40

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

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