Results 1 to 4 of 4

Thread: help! joystick detection! urgent!!

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2001
    Location
    malaysia
    Posts
    44

    help! joystick detection! urgent!!

    how to write a program that can detect the joystick and show the movements?!!!!!
    plis help!!!! lots of thanx!!!!!!!!!!!!

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Look at the joyGetDevCaps call first, then the joyGetPos call - both are windows API's (www.vbapi.com or www.allapi.net will help you)

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Further to the PM e-mail that I can't reply to , here ya go...

    I've not personally used this before - and just looked it up for you. If you goto this page though and download the API guide, this
    little program is like a bible for working with the API and has a couple of samples in - I can't run these as I haven't got a joystick, on this pc (it'd be nice at work, hey, so would Drew Barrymore & it ain't gonna happen )but this'll help you.

    Here's what the program looks like, just type those calls I gave you into
    the left & select the example tab.
    Attached Files Attached Files

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  4. #4

    Thread Starter
    Member
    Join Date
    Jun 2001
    Location
    malaysia
    Posts
    44

    too tough for me

    well, i'm new with VB n i not sure that i can understand about that API funct or struct. where can i find a very simple n direct program as reference. i just need to detect my joystick( using gameport ) n left, right, up n down movement. that's o. no need the buttons or others.

    thanx.

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