mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-04-02 10:52:54 -04:00
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@475 96395faa-99c1-11dd-bbfe-3dabce05a288
25 lines
580 B
C++
25 lines
580 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() {
|
|
// 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;
|
|
}
|