Results 1 to 4 of 4

Thread: keyboard vs joystick: how to detect 1 by 1

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2001
    Location
    malaysia
    Posts
    44

    keyboard vs joystick: how to detect 1 by 1

    i want to detect 2 devices, keyboard n the joystick.
    i just want to make sure that when the key pressed on the keyboard ( i use keydown_event ), the program won't detect the joystick; n the joystick moved ( joystick_move event ), temporary
    won't detect the keyboard.
    which command can i use or how can i write it?
    give me some ideas!!!!!!

  2. #2

    Thread Starter
    Member
    Join Date
    Jun 2001
    Location
    malaysia
    Posts
    44
    give me some ideas!!!!!!

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    DirectX, VB, what are you using?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    I think you should let them use three, for example you can have keyboard/joy/mouse, and then let them use any at any time, so that you can view & shoot with the mouse, and move/other with your keyboard (an example, like in FPS games).

    If you need code for the joystick/keyboard/mouse, all can be achieved with DirectInput. However if you aren't using it for the graphics already, it is quite a bulky download and you should look for an API solution.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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