Results 1 to 5 of 5

Thread: 3rd post oledi! really need help!! keyboard n joystk detection

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2001
    Location
    malaysia
    Posts
    44

    3rd post oledi! really need help!! keyboard n joystk detection

    i need to write a program that can detect the keyboard and the joystick at the same time.
    i need to detect 4 arrow keys on the keyboard( just put 4 buttons on the form to indicate 4 directions n highlight when key pressed ).
    at the same time and same place or same form, i need to detect my joystick for 4 direction only ( up,down,left n right ).
    i using command 'keydown' n check for vbkeyleft n so on.......
    n using component 'mabry joystk ctrl' but i don't why the program can not be run.
    can plis!! someone!! plis!! help me to write the program b'cos time is really running short for me!!!!!!!!!

    thanx!!!!!!!

    ( sorry, to get more attentions, i 'll try to post this several time. sorry for the inconvinient!!!! )

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    There are several APIs that you can use. In the API forum, ask for some help on GetJoyPos and other similar API calls.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  3. #3

    Thread Starter
    Member
    Join Date
    Jun 2001
    Location
    malaysia
    Posts
    44

    thanx but .............

    ya, someone did post these 2 API:
    Public Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer

    Public Declare Function GetInputState Lib "user32" Alias "GetInputState" () As Long

    but i don't know how to use it. can someone plis help me to motify the program or very kindly write me a program that can really save my life.
    Attached Files Attached Files

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    There's a great book written for VB3 called "Black Art of Visual Basic Games Programming" or something like that. I suggest you look in your local bargain bin for a copy. It goes over BitBlt and Input in huge detail.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5

    Thread Starter
    Member
    Join Date
    Jun 2001
    Location
    malaysia
    Posts
    44

    who is the author?!

    as title, do u know who is the author?!!!!

Posting Permissions

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



Click Here to Expand Forum to Full Width