Taking input from a joystick with C# .NET
I searched around on Google for this, but the only things I came up with were outdated and did not work. Does anyone have any information on how to get joystick data using C# .NET? One: use SlimDX . Two: it looks something like this (where GamepadDevice is my own wrapper, and the code is slimmed down to just the relevant parts). Find the joystick / pad GUIDs: public virtual IList<GamepadDevice> Available() { IList<GamepadDevice> result = new List<GamepadDevice>(); DirectInput dinput = new DirectInput(); foreach (DeviceInstance di in dinput.GetDevices(DeviceClass.GameController,