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