mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
Write bluetooth packets asynchronously to prevent blocking on
commands that take some time to complete in the wiimote. From <matthew.powersfreeling>. Fixes issue 3437. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6365 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
bee873a30c
commit
7dd7bd2b03
1 changed files with 7 additions and 2 deletions
9
Externals/WiiUse/Src/io_osx.m
vendored
9
Externals/WiiUse/Src/io_osx.m
vendored
|
@ -330,7 +330,12 @@ int wiiuse_io_read(struct wiimote_t *wm)
|
||||||
|
|
||||||
int wiiuse_io_write(struct wiimote_t *wm, byte *buf, int len)
|
int wiiuse_io_write(struct wiimote_t *wm, byte *buf, int len)
|
||||||
{
|
{
|
||||||
[cchan writeSync: buf length: len];
|
IOReturn ret;
|
||||||
|
|
||||||
return len;
|
ret = [cchan writeAsync: buf length: len refcon: nil];
|
||||||
|
|
||||||
|
if (ret == kIOReturnSuccess)
|
||||||
|
return len;
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue