fix rumble flag and windows compiler warning
This commit is contained in:
@@ -243,7 +243,7 @@ int wiiuse_os_read(struct wiimote_t* wm, byte* buf, int len) {
|
|||||||
/* log the received data */
|
/* log the received data */
|
||||||
#ifdef WITH_WIIUSE_DEBUG
|
#ifdef WITH_WIIUSE_DEBUG
|
||||||
{
|
{
|
||||||
int i;
|
DWORD i;
|
||||||
printf("[DEBUG] (id %i) RECV: (%.2x) ", wm->unid, buf[0]);
|
printf("[DEBUG] (id %i) RECV: (%.2x) ", wm->unid, buf[0]);
|
||||||
for(i = 1; i < b; i++) {
|
for(i = 1; i < b; i++) {
|
||||||
printf("%.2x ", buf[i]);
|
printf("%.2x ", buf[i]);
|
||||||
|
|||||||
@@ -629,7 +629,7 @@ int wiiuse_send(struct wiimote_t* wm, byte report_type, byte* msg, int len) {
|
|||||||
{
|
{
|
||||||
/* Rumble flag for: 0x11, 0x13, 0x14, 0x15, 0x19 or 0x1a */
|
/* Rumble flag for: 0x11, 0x13, 0x14, 0x15, 0x19 or 0x1a */
|
||||||
if (WIIMOTE_IS_SET(wm, WIIMOTE_STATE_RUMBLE))
|
if (WIIMOTE_IS_SET(wm, WIIMOTE_STATE_RUMBLE))
|
||||||
msg[1] |= 0x01;
|
msg[0] |= 0x01;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user