Results 1 to 2 of 2

Thread: DXInput key up?

  1. #1

    DXInput key up?

    hard to explain form me but can you make somthing when you let lose of key up you can add something?

    with the use of DXInput.

    i wanna make something like if the key is pressed then timer1.enabled:=true

    and when you let lose of the key then timer1.enabled:=false;

  2. #2

    DXInput key up?

    Are you sure you want to handle this with DirectInput?
    Probably it's better to watch for standart Windows messages WM_KEYDOWN WM_KEYUP?

    DInput way to work with keyboard is:
    1) Keyboard is BIG 101+ key keypad
    2) Programmer should poll keyboard device for presed keys
    So you (in cycle) poll keyboard device for 256 byte array containing information is key pressed, comparing to previous poll you decide what key is released an fire your "timer1.enabled:=false;" command.
    There are only 10 types of people in this world; those who understand binary and those who don't.

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
  •