|
-
Feb 14th, 2000, 08:55 PM
#1
Thread Starter
New Member
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 ?
-
Feb 16th, 2000, 10:43 PM
#2
Hyperactive Member
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
-
Feb 17th, 2000, 12:10 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|