mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Gamepad (minor) > Fix to last commit
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4549 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -445,24 +445,21 @@ void PAD_GetStatus(u8 _numPAD, SPADStatus* _pPADStatus)
|
||||
|
||||
bool LocalSearchDevices(std::vector<InputCommon::CONTROLLER_INFO> &_joyinfo, int &_NumPads)
|
||||
{
|
||||
// Turn off device polling while searching
|
||||
EnablePolling(false);
|
||||
|
||||
//DEBUG_LOG(PAD, "LocalSearchDevices");
|
||||
bool Success = InputCommon::SearchDevices(_joyinfo, _NumPads);
|
||||
|
||||
DoLocalSearchDevices(_joyinfo, _NumPads);
|
||||
|
||||
EnablePolling(true);
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
||||
bool LocalSearchDevicesReset(std::vector<InputCommon::CONTROLLER_INFO> &_joyinfo, int &_NumPads)
|
||||
{
|
||||
//DEBUG_LOG(PAD, "LocalSearchDevicesUpdate: %i", IsPolling());
|
||||
|
||||
bool Success = InputCommon::SearchDevicesReset(_joyinfo, _NumPads);
|
||||
// Turn off device polling while resetting
|
||||
EnablePolling(false);
|
||||
bool Success = InputCommon::SearchDevicesReset(_joyinfo, _NumPads);
|
||||
EnablePolling(true);
|
||||
|
||||
DoLocalSearchDevices(_joyinfo, _NumPads);
|
||||
|
||||
|
Reference in New Issue
Block a user