Support for multiple wiimotes on OS X.

Fixes issue 3703.

Note that HLE wiimote activation is currently a little broken, so to
use multiple wiimotes you need to open the wiimote configuration window,
refresh (connect to) the real wiimotes, start the emulation and then
select Connect Wiimote 2/3/4 from the Tools menu or with hotkeys.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6648 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Soren Jorvang
2010-12-22 20:24:25 +00:00
parent e059587c1a
commit edbc06bd18
5 changed files with 92 additions and 55 deletions

View File

@ -155,6 +155,15 @@ typedef struct wiimote_t {
WCONST IOBluetoothDevice *btd;
WCONST IOBluetoothL2CAPChannel *ichan;
WCONST IOBluetoothL2CAPChannel *cchan;
#define QUEUE_SIZE 64
WCONST struct buffer {
char data[MAX_PAYLOAD];
int len;
} queue[QUEUE_SIZE];
WCONST int reader;
WCONST int writer;
WCONST int outstanding;
WCONST int watermark;
#elif defined(__linux__) && HAVE_BLUEZ
WCONST bdaddr_t bdaddr; /**< bt address (linux) */
WCONST char bdaddr_str[18]; /**< readable bt address */