I've done a lot of seaching and grinding snippets of code to try to use my foot pedal. Here's where I am at:
I am able to see my device of concern and two others with this line
myList = Manager.GetDevices(DeviceType.Device, EnumDevicesFlags.AttachedOnly
USB to PS2 Adaptor v1.12
USB to PS2 Adaptor v1.12
USB Footpedal
Here's my problem....I can see it, how do I read it's 3 pedal switches on/off states When I look at the deviceinstance properties, I see
- odi {Microsoft.DirectX.DirectInput.DeviceInstance} Microsoft.DirectX.DirectInput.DeviceInstance
DeviceSubType 0 Integer
DeviceType Device {17} Microsoft.DirectX.DirectInput.DeviceType
- ForceFeedbackDriver {System.Guid} System.Guid
Empty Nothing System.Guid
- Instance {System.Guid} System.Guid
Empty Nothing System.Guid
InstanceName "USB Footpedal" String
- Product {System.Guid} System.Guid
Empty Nothing System.Guid
ProductName "USB Footpedal" String
Usage 3 Short
UsagePage 12 Short
What is my direction from here How do I use this information now to access the pedal switches on/off states Any <real> assistance would be greatly appreciated.

playing audio file with a foot pedal in vb.net
sarika
What you might have to do is develop a small application that will monitor the states of the different objects... then press each button to find the reaction that you want... This would be simular to the configuration screens for most controllers that come with there drivers.
farkbert
UtterMan
BigWinston
I'm not familiar with managed DirectInput, but when using DirectInput natively the first thing you would do wouldbe to create a device object using the instance GUID from the device instances properties. Next you would then set a data format based on either what sort of controls you assume the device has, or based on what you learn from enumerating the device's actual controls. To actually get the data, you'd use the device object to either poll the device regularly or arrange for it notifty you whenever the state of the device changes.
Unfortunately, if understand the device instance properties you listed in your original message correctly, there is no instance GUID set in the properties.