Results 1 to 4 of 4

Thread: Setting bindings - question

  1. #1

    Setting bindings - question

    My game will need setting bindings. I have question tho about setting them up. Is (in pseudo pascal)
    Code:
    repeat until keypressed; up:=readkey;
    enough or do I need something more complicated?

  2. #2
    Depends on application, and usable input components. You propably want to animate menu graphics while reading the key.

  3. #3
    crt has a small buffer for keys (16 bytes, I think), so you don't need to grab the key via readkey() instantly.
    Code:
    repeat
       sleep();
       animateMenu()
       until keypressed;
    key := readkey();

  4. #4
    Hm, thanks. By the way, you may know me as Rave. But that's just small tip.

Bookmarks

Posting Permissions

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