Getting Two Game Devices Working With DirectInput?

Nov 9, 2009

Getting two game devices working with DirectInput

View 2 Replies


ADVERTISEMENT

Game Of 21 Card Game, Code For Checking Score Is Not Working?

Jan 13, 2012

Check Score: The winner is the one with the highest score less than or equal to 21If both scores(player total and computer total) are over 21, or if both are equal but under 21, the game is declared a draw.

There is something wrong with this line:
If intPlayerCardTotal < intScore And intComputerTotal < intScore Then
MsgBox "Draw"

[code]......

View 6 Replies

Can't Get Joystick To Work With DirectInput?

Aug 23, 2009

I've been using DirectX SDK libraries (Specificaly DirectInput) to use a joystick with an desktop program, but I haven't been able to make the program get the input form the joystick (X and Y Axis). This is the code I'm using on Main Form:

[Code]...

View 4 Replies

DirectInput Axis And Button

Nov 2, 2009

Ok, so I am attempting to try my hand in directinput, I got the code up and running within VB.net, it recognizes the controller and almost all buttons work, but for some reason 2 or 3 of the axis do not work on each controller.I have tried this with an xbox360 wireless controller and a Logitech wired controller (ps2 style) they both show the correct amount of axis on each controller, but do not work correctly.[code]I have looked everywhere for my problem, but the issue is, I am not exactly sure what the problem is to search for.if anyone also knows how to access the "X" (power) button on the xbox controller, that would be awesome as well, because I want it to interact with my program!and if you don't have a wireless receiver a wired one is exactly the same...

View 2 Replies

Emulate Mouseclick When Directinput?

Jul 27, 2009

How to emulate a mouse click with directinput?

like ive been searching for this for hours and can't find anything decent for VB 2008

View 1 Replies

Polls A USB Controller For Changes Using DirectInput?

Jun 4, 2010

I've been working with code that polls a USB controller for changes using DirectInput, however I would much prefer I could make it event-driven instead (to cut CPU usage). Does anyone know if there is some method of doing this with DirectInput? I can provide the code upon request.

View 1 Replies

Flash Game Isn't Working In WebBrowser?

Sep 10, 2011

In the beginning, I wasn't able to run a flash game on my webbrowser in visual basic. I then found out that there was a setting I needed to change and then flash started to work again for me.I just sent the program to my friend and flash isn't working for him in his webbrowser. What do I do?and the setting i changed was

Tools-->Options-->Show all settings-->checked
Projects and Solutions-->General-->Show advanced build configurations-->checked-->OK
Build-->Configuration Manager-->Active solution platform-->New-->x86-->OK-->Closed

View 3 Replies

Working On A Control Panel For A Game?

Jun 21, 2009

Okay i'm working on a control panel for a game.And one thing the control panel does is actually opens the game.My problem is when running the program using shell() i run into the issue where it will run the game, but won't load the data from the config files it uses.I've also have this problem with a server that uses an admin.ini and a config.ini and doesn't load any of the data from those files.

I've tried using google over and over again, and no where did i find a website that can help me with my problem

View 1 Replies

Game Programming :: Galaga Hit Detection Not Working?

May 14, 2011

I'm having trouble with hit detection in a game i'm working on and can't seem to figure it out. I made another game before that also has hit detection and that works fine but when i tried to translate the code from that one to the Galaga game its doesn't seem to work the same.Heres my code, its all commented so you can see what you need.

Code:
Public Class GameForm
'Player Variables
Dim Direction As String

[code]....

View 2 Replies

Get All Sound Devices

Jan 10, 2011

i need to get all sound device on pc as input and output after that i want to create a comobox to make the user select once of sound device

View 6 Replies

List Name Of All Connected Devices On Lan?

Oct 28, 2010

i am trying to enumerate all IPs on my local network, but i am not having any luck. The only thing i have came up with so far is a really tedius "get my own ip and scan the subnet with pings" which surely isn't the best way? I am really only trying to get the ip of a tivo box, and i can determine it's a tivo by mac address or name. My router lists the "computer name" of the tivos as a long string of numbers with the prefix "tivo".What about broadcasting a ping packet? I could also attempt to connect with telnet to port 31339 on every one of them.

View 8 Replies

Add Support For MTP Based Devices?

Apr 3, 2007

I'm writing a media management tool and want to add support for MTP based devices.I've been reading through the SDK docs and with the help of some C# examples have managed to make a start on getting some VB code working.

I've come across a few anomolies that I hope someone can help me with!In the examples IPortableDeviceManager.GetDevice appears in C# to receive a string array. But in VB.NET it appears to only receive a string. I have a similar issue with IPortableDeviceManager.GetDeviceFriendlyName which according to the C# samples appears to receive a char array, whereas in VB.NET it is accepting a UShort.

[Code]...

View 1 Replies

Detect Special Usb Devices?

May 17, 2011

i have a question about detecting some usb devices. I use two different usb devices : Safenet HASP and Maxim iButton.Is it possible to detect that these usb devices are connected.

View 1 Replies

Error While Ejecting USB Devices

Dec 10, 2009

I am having trouble ejecting the USB device. It gives an error saying " The device cannot be stopped right now. Try stopping the device later" To duplicate the problem, I created a very simple application with two forms. Form 1 has a button to the Form 2.

[Code]...

View 3 Replies

Get A List Of Bluetooth Devices?

Jun 27, 2010

got a good sample of using VB to get a list of Bluetooth devices? And to maybe send and receive a file.Also, I'm using VS2005. Is there any better Bluetooth resources available if I upgrade to VS2010?

View 6 Replies

Get Devices Name From Device Manager?

Jan 24, 2012

I want to show a list of devices attach to system same like Device Manager tree.

View 3 Replies

HID Compatible Devices/raw Input?

Jan 11, 2012

All I was able to figure out is a decleration for GetRawInputDeviceList which atm isn't working for me, I tried passing lots of different values in to get something to work, i've got outputs of -1, 0, and 1 from it but I use a mouse/keyboard & also have a controller hooked up...I also am not retrieving any information on what type of device(s) that might be hooked up/detected.The deceleration types & the like may be off but I translated from C++ code.

Declare Function GetRawInputDeviceList Lib "user32.dll" (ByVal pRawInputDeviceList As IntPtr, ByRef puiNumDevices As Int32, ByVal cbSize As Int32) As Int32

View 10 Replies

Send Sms Using Bluetooth Devices?

Sep 28, 2011

How to create code and send sms in vb.net using bluetooth devices..

View 2 Replies

VS 2010 List COM Devices?

Nov 5, 2010

I want to make program I want to make a program and I need the user to choose a com device to connect to it I made a drop down box but I want to put devices in it

View 7 Replies

Source Code With The DirectInput Code ?

Jul 14, 2010

A source code with the DirectInput code and yes i have been googling it and couldn't find one for vbnet yah that would be great to have it just Namespace blah blah function blah blah and this is how u use Directinput("0") or sumthn like that

View 10 Replies

Detection Of Insertion And Removal Of USB Devices?

Nov 22, 2006

I am having problem with my FYP that my application is based on the detection of Insertion and Removal of a device. I am aware that this would happen using Win32_VolumeChangeEvent class or WMI. (Please notify me if I am wrong). Kindly solve this problem and send the code for Console Application in VB.NET. Please do not send code in any script language or C#. Also to get the device information.

View 6 Replies

Enable/disable System Devices?

Aug 18, 2009

How do I go about enabling or disabling a system device as its done in Device Manager?On the right click / Properties menu there is the option " Device Usage "

View 3 Replies

Forms :: Hide Hidden Devices

Dec 9, 2009

Been a long time since my last thread but here we go.I'm using VS.NET 2010 Prof Beta at the moment and I'm trying to list all Nic Cards and their settings into a text box. I succeeded with a script from the web (which had an error in the first place) and some adjustments to it.

It lists all hidden devices too (as to be shown in Device manager: Show hidden devices) I worked my way around it and let it jump to next if it doesn't have a IP address, but I find this a bit clumsy and want to really skip them if they are hidden and not just the way I did this now.

Plus it still does show the same NiC (different name, same MAC#) in the list because it has an IP, but in Device manager this one is hidden.[code...]

View 8 Replies

Get The Names Of The USB Devices Attached To A Computer?

Jun 9, 2012

I am trying to get the names of the USB devices attached to a computer. I saw system.management would do what I need, but. It says its not defined and I cannot find system.management as a refrence.

I am building in VB2008. Can some one point me in the right direction?

View 11 Replies

How To Begin Programming Of Smart Devices

Aug 17, 2009

anyone out there assist me with a basic tutorial on how to begin programming of smart devices?What can I do with the Microsoft SDK?

View 1 Replies

How To Send Email To Mobile Devices

Jul 5, 2011

I wanna to no how to send email to mobile advice?

View 5 Replies

Remote Automation Control For Two Devices?

Jan 22, 2010

I have 2 devices
An old IPAQ Pocket PC that runs Windows Mobile 4.2
A Mini-ITX PC Running XP

My IPAQ connects to my network via wireless. My Mini-ITX PC is going to have an IR-Blaster setup which is going to control all my devices. What I would like to do is create a small controller program that runs on my IPAQ and a back end program on my Mini-ITX PC, so that when a particular control is selected on my IPAQ it sends the signal to my program on the Mini-ITX PC which inturns sends the correct IR signal to the device in question.

View 2 Replies

Send A PIN Message To BlackBerry Devices?

Mar 24, 2011

Get the code of how to Send a PIN message to BlackBerry devices?

View 3 Replies

Use Diagnostics.process.kill In With Devices?

Jan 23, 2010

If I have two apps which I have written with vb 2008 for windows 6 device lets say app1 and app2. App1 is running but then needs to start app2 - then app2 needs to shut down app1 and do some updating of app1 then app2 needs to restart app1 and app2 then needs to be shutdown. I am aware of the systemdiagnostics.process classes. One thing I don't understand is how to shutdown app1 from app2 how would get that processid of app1 due to the fact that you havn't access to getproccessbyname methods.

View 3 Replies

VS 2005 Polling Data From Devices?

Aug 19, 2009

We are currently polling data from devices and sharing these data using shared memory. So other applications can get the data off from the memory mapped files.

Now we are moving on to web and we are still using the same method of using asp.net to read data off the memory files.

Would like to find out if there are better methods of doing this?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved