How to add joystick in visual basic 2008

If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
12 posts Page 1 of 2
Contributors
User avatar
Bucher
Just Registered
Just Registered
Posts: 5
Joined: Tue Jan 19, 2010 11:05 am

hello all, I have browsed the web for tutorial to help me add joystick funktions to an application but no luck :(

The program will controle one or more serial relayboards.. well it can already do that but, only by pressing a button and i want the relays to be controled by the joystick.
something like..
Define Xaxis - 0 to 255
If JoyAxis X is >150 then relay1
If JoyAxis X is <100 then relay2
and so on...

Later on I want the joystick to control direction and speed of a DC motor/Analog output on the relay board
Im useing a Logitech USB game pad

Any help will be much appriciated
User avatar
Harlem9191
Top Poster
Top Poster
Posts: 87
Joined: Mon Jan 18, 2010 8:45 pm

This? http://www.vbdotnetheaven.com/UploadFil ... ickVB.aspx

Type into the Google search bar 'vb.net joystick' it is a suggestion you're bound to find something :)
User avatar
Bucher
Just Registered
Just Registered
Posts: 5
Joined: Tue Jan 19, 2010 11:05 am

No thats not it.. its a viritual joystick controled by the mouse.
I have been googleing all day now.. the closest i got to it is a small sample in DirectX SDK 2009 (See attatchment)
This is what i want in my program and then depending on the values it control funktions in my program witch today is controled by bottons.

The source code for the program are also in DirectX SDK 2009 but I can´t open it in Visual Basic 2008 Express !
You do not have the required permissions to view the files attached to this post.
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

That doesnt work?
Image
User avatar
Bucher
Just Registered
Just Registered
Posts: 5
Joined: Tue Jan 19, 2010 11:05 am

Wired.. works fine here.. also the download.. anyway here is a picture of it
You do not have the required permissions to view the files attached to this post.
User avatar
Bucher
Just Registered
Just Registered
Posts: 5
Joined: Tue Jan 19, 2010 11:05 am

Here is the source code for C++

I was wondering if it´s possible to convert it to use for Visual Basic 2008 Express

Thx in advance
You do not have the required permissions to view the files attached to this post.
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

I would but i dont want to get c :P Though i should
Image
User avatar
Harlem9191
Top Poster
Top Poster
Posts: 87
Joined: Mon Jan 18, 2010 8:45 pm

User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Hello,

This one is for VB but im unable to test it because I dont have a joystick :?

Download:
vb joystick.zip
Hope it works cooll;
You do not have the required permissions to view the files attached to this post.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Lewis
Coding God
Coding God
Posts: 1564
Joined: Sun Dec 20, 2009 2:12 pm

I dont have a Joystick either
Image
12 posts Page 1 of 2
Return to “Coding Help & Support”