Results 1 to 3 of 3

Thread: Games Port Input

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2000
    Posts
    13

    Post

    How do I input values from the games port into a VB programme ? For example how could I tell the position of a Joystick ? Are there any controls which do this ? or could I use API ?

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Post

    You need to use this API

    Declare Function joyGetPos Lib "winmm.dll" (ByVal uJoyID As Long, pji As JOYINFO) As Long

    JOYINFO structure:

    Type JOYINFO
    wXpos As Long
    wYpos As Long
    wZpos As Long
    wButtons As Long
    End Type

    Hope this helps



  3. #3
    Guest

    Post

    if you want to make games.. why not using the directx 7. you can download the directx 7 sdk version from the msdn web site. there are alot of vb examples with it. even a example how you can use a joystick in your won games.

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