NewGamePhysics.Utilities.Gamepads Class Reference

List of all members.

Public Member Functions

 Gamepads ()
 Reloads all gamepads.

Properties

List< DirectXInputItems [get]

Detailed Description

Definition at line 14 of file DirectXInput.cs.


Constructor & Destructor Documentation

NewGamePhysics.Utilities.Gamepads.Gamepads (  ) 

Reloads all gamepads.

Definition at line 28 of file DirectXInput.cs.

00029                 {
00030                         // gamepads generally misidentified as Joysticks in DirectInput... get both
00031                         DeviceList gamepadInstanceList = Manager.GetDevices(DeviceType.Gamepad, EnumDevicesFlags.AttachedOnly);
00032                         DeviceList joystickInstanceList = Manager.GetDevices(DeviceType.Joystick, EnumDevicesFlags.AttachedOnly);
00033 
00034                         items = new List<DirectXInput>(gamepadInstanceList.Count + joystickInstanceList.Count);
00035 
00036                         foreach (DeviceInstance deviceInstance in gamepadInstanceList)
00037                         {
00038                                 DirectXInput item = new DirectXInput(deviceInstance.InstanceGuid);
00039                                 items.Add(item);
00040                         }
00041 
00042                         foreach (DeviceInstance deviceInstance in joystickInstanceList)
00043                         {
00044                                 DirectXInput item = new DirectXInput(deviceInstance.InstanceGuid);
00045                                 items.Add(item);
00046                         }
00047                 }


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2