Fixing controller input.
This commit is contained in:
parent
c06526e5df
commit
18b1f9f513
|
@ -86,8 +86,6 @@ void AudioSystem::ThreadStart() {
|
|||
}
|
||||
|
||||
size_t pumped = 0;
|
||||
{
|
||||
SCOPE_profile_cpu_i("apu", "Pump");
|
||||
if (result >= WAIT_OBJECT_0 && result <= WAIT_OBJECT_0 + (maximum_client_count_ - 1)) {
|
||||
size_t index = result - WAIT_OBJECT_0;
|
||||
do {
|
||||
|
@ -102,7 +100,6 @@ void AudioSystem::ThreadStart() {
|
|||
index++;
|
||||
} while (index < maximum_client_count_ && WaitForSingleObject(client_wait_handles_[index], 0) == WAIT_OBJECT_0);
|
||||
}
|
||||
}
|
||||
|
||||
if (!running_) {
|
||||
break;
|
||||
|
|
|
@ -46,16 +46,16 @@ InputSystem* xe::hid::Create(Emulator* emulator) {
|
|||
// NOTE: in any mode we create as many as we can, falling back to nop.
|
||||
|
||||
#if XE_PLATFORM_WIN32
|
||||
InputDriver* winkey_driver = xe::hid::winkey::Create(input_system);
|
||||
if (winkey_driver) {
|
||||
input_system->AddDriver(winkey_driver);
|
||||
any_created = true;
|
||||
}
|
||||
InputDriver* xinput_driver = xe::hid::xinput::Create(input_system);
|
||||
if (xinput_driver) {
|
||||
input_system->AddDriver(xinput_driver);
|
||||
any_created = true;
|
||||
}
|
||||
InputDriver* winkey_driver = xe::hid::winkey::Create(input_system);
|
||||
if (winkey_driver) {
|
||||
input_system->AddDriver(winkey_driver);
|
||||
any_created = true;
|
||||
}
|
||||
#endif // WIN32
|
||||
|
||||
// Fallback to nop if none created.
|
||||
|
|
Loading…
Reference in New Issue