mirror of https://github.com/PCSX2/pcsx2.git
26 lines
608 B
C++
26 lines
608 B
C++
#include "Global.h"
|
|
#include "DeviceEnumerator.h"
|
|
#include "InputManager.h"
|
|
#include "WindowsMessaging.h"
|
|
#include "DirectInput.h"
|
|
#include "KeyboardHook.h"
|
|
#include "RawInput.h"
|
|
#include "XInput.h"
|
|
|
|
void EnumDevices(int hideDXXinput) {
|
|
// Needed for enumeration of some device types.
|
|
dm->ReleaseInput();
|
|
InputDeviceManager *oldDm = dm;
|
|
dm = new InputDeviceManager();
|
|
|
|
EnumHookDevices();
|
|
EnumWindowsMessagingDevices();
|
|
EnumRawInputDevices();
|
|
EnumXInputDevices();
|
|
EnumDirectInputDevices(hideDXXinput);
|
|
|
|
dm->CopyBindings(oldDm->numDevices, oldDm->devices);
|
|
|
|
delete oldDm;
|
|
}
|