mirror of
https://github.com/dolphin-emu/dolphin
synced 2025-10-06 00:13:03 +02:00
WiimoteReal/IOLinux: Increase inquiry length to 3.84 seconds. This is what Wii games use and it seems to work better.
This commit is contained in:
@@ -55,9 +55,7 @@ void WiimoteScannerLinux::FindWiimotes(std::vector<Wiimote*>& found_wiimotes, Wi
|
||||
{
|
||||
WiimoteScannerLinux::AddAutoConnectAddresses(found_wiimotes);
|
||||
|
||||
// supposedly 1.28 seconds
|
||||
int const wait_len = 1;
|
||||
|
||||
int const wait_len = BLUETOOTH_INQUIRY_LENGTH;
|
||||
int const max_infos = 255;
|
||||
inquiry_info scan_infos[max_infos] = {};
|
||||
auto* scan_infos_ptr = scan_infos;
|
||||
|
@@ -33,6 +33,9 @@ constexpr int REPORT_HID_HEADER_SIZE = 1;
|
||||
|
||||
constexpr u32 WIIMOTE_DEFAULT_TIMEOUT = 1000;
|
||||
|
||||
// Multiple of 1.28 seconds. Wii games use a value of 3.
|
||||
constexpr u8 BLUETOOTH_INQUIRY_LENGTH = 3;
|
||||
|
||||
// The 4 most significant bits of the first byte of an outgoing command must be
|
||||
// 0x50 if sending on the command channel and 0xA0 if sending on the interrupt
|
||||
// channel. On Mac and Linux we use interrupt channel; on Windows, command.
|
||||
|
Reference in New Issue
Block a user