2009-02-11 20:47:41 +00:00
|
|
|
#include "Global.h"
|
2009-02-11 09:24:56 +00:00
|
|
|
#include "DeviceEnumerator.h"
|
|
|
|
#include "InputManager.h"
|
|
|
|
#include "WindowsMessaging.h"
|
|
|
|
#include "DirectInput.h"
|
|
|
|
#include "KeyboardHook.h"
|
|
|
|
#include "RawInput.h"
|
|
|
|
#include "XInput.h"
|
|
|
|
|
|
|
|
void EnumDevices() {
|
|
|
|
// Needed for enumeration of some device types.
|
|
|
|
dm->ReleaseInput();
|
|
|
|
InputDeviceManager *oldDm = dm;
|
|
|
|
dm = new InputDeviceManager();
|
|
|
|
|
|
|
|
EnumHookDevices();
|
|
|
|
EnumWindowsMessagingDevices();
|
|
|
|
EnumRawInputDevices();
|
|
|
|
EnumXInputDevices();
|
|
|
|
EnumDirectInputDevices();
|
|
|
|
|
|
|
|
dm->CopyBindings(oldDm->numDevices, oldDm->devices);
|
|
|
|
|
|
|
|
delete oldDm;
|
|
|
|
}
|