mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-03 06:39:33 +00:00
This should fix wiimote extensions on linux. Now to figure out the windows issue, and then OSX ... Sigh!
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6702 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
bc78a98cbc
commit
4b3a6a6d47
3 changed files with 59 additions and 59 deletions
|
@ -223,7 +223,7 @@ unsigned char *Wiimote::IORead()
|
|||
|
||||
// Read the pending message into the buffer
|
||||
unsigned char *buffer = new unsigned char[MAX_PAYLOAD];
|
||||
r = read(in_sock, buffer, sizeof(buffer));
|
||||
r = read(in_sock, buffer, sizeof(unsigned char) * MAX_PAYLOAD);
|
||||
if (r == -1)
|
||||
{
|
||||
// Error reading data
|
||||
|
|
|
@ -55,7 +55,7 @@ Wiimote::Wiimote(const unsigned int _index)
|
|||
#elif defined(_WIN32)
|
||||
, dev_handle(0), stack(MSBT_STACK_UNKNOWN)
|
||||
#endif
|
||||
, leds(0) , m_last_data_report(NULL) , m_channel(0) , m_connected(false)
|
||||
, leds(0), m_last_data_report(NULL), m_channel(0), m_connected(false)
|
||||
{
|
||||
#if defined(__linux__) && HAVE_BLUEZ
|
||||
bdaddr = (bdaddr_t){{0, 0, 0, 0, 0, 0}};
|
||||
|
|
|
@ -42,8 +42,8 @@ namespace WiimoteReal
|
|||
|
||||
class Wiimote
|
||||
{
|
||||
friend class WiimoteEmu::Wiimote;
|
||||
public:
|
||||
friend class WiimoteEmu::Wiimote;
|
||||
public:
|
||||
Wiimote(const unsigned int _index);
|
||||
~Wiimote();
|
||||
|
||||
|
@ -71,7 +71,7 @@ class Wiimote
|
|||
IOBluetoothDevice *btd;
|
||||
IOBluetoothL2CAPChannel *ichan;
|
||||
IOBluetoothL2CAPChannel *cchan;
|
||||
#define QUEUE_SIZE 64
|
||||
#define QUEUE_SIZE 64
|
||||
struct qbuffer
|
||||
{
|
||||
char data[MAX_PAYLOAD];
|
||||
|
@ -94,11 +94,11 @@ class Wiimote
|
|||
#endif
|
||||
unsigned char leds; // Currently lit leds
|
||||
|
||||
protected:
|
||||
protected:
|
||||
u8 *m_last_data_report;
|
||||
u16 m_channel;
|
||||
|
||||
private:
|
||||
private:
|
||||
void ClearReadQueue();
|
||||
void RealDisconnect();
|
||||
bool SendRequest(unsigned char report_type, unsigned char* data, int length);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue