|
-
Jan 18th, 2002, 05:20 PM
#1
Thread Starter
Member
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?
-
Jan 19th, 2002, 06:46 AM
#2
Thread Starter
Member
-
Jan 22nd, 2002, 08:40 AM
#3
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.
-
Jan 22nd, 2002, 03:50 PM
#4
Good Ol' Platypus
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|