mirror of
https://github.com/libretro/RetroArch
synced 2025-01-28 14:54:03 +00:00
(Wiiuse) comment out some checks
This commit is contained in:
parent
5ee38b157d
commit
05333fcc0a
@ -80,14 +80,10 @@ static void event_ack(struct wiimote_t *wm,ubyte *msg)
|
|||||||
|
|
||||||
wiiuse_pressed_buttons(wm,msg);
|
wiiuse_pressed_buttons(wm,msg);
|
||||||
|
|
||||||
if(!cmd || cmd->state!=CMD_SENT || cmd->data[0]==WM_CMD_READ_DATA || cmd->data[0]==WM_CMD_CTRL_STATUS || cmd->data[0]!=msg[2]) {
|
if(!cmd || cmd->state!=CMD_SENT || cmd->data[0]==WM_CMD_READ_DATA || cmd->data[0]==WM_CMD_CTRL_STATUS || cmd->data[0]!=msg[2] || msg[3]) {
|
||||||
//WIIUSE_WARNING("Unsolicited event ack: report %02x status %02x", msg[2], msg[3]);
|
//WIIUSE_WARNING("Unsolicited event ack: report %02x status %02x", msg[2], msg[3]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(msg[3]) {
|
|
||||||
//WIIUSE_WARNING("Command %02x %02x failed: status %02x", cmd->data[0], cmd->data[1], msg[3]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
//WIIUSE_DEBUG("Received ack for command %02x %02x", cmd->data[0], cmd->data[1]);
|
//WIIUSE_DEBUG("Received ack for command %02x %02x", cmd->data[0], cmd->data[1]);
|
||||||
|
|
||||||
|
@ -26,11 +26,11 @@ void wiiuse_send_next_command(struct wiimote_t *wm)
|
|||||||
cmd->state = CMD_SENT;
|
cmd->state = CMD_SENT;
|
||||||
if(WIIMOTE_IS_SET(wm,WIIMOTE_STATE_RUMBLE)) cmd->data[1] |= 0x01;
|
if(WIIMOTE_IS_SET(wm,WIIMOTE_STATE_RUMBLE)) cmd->data[1] |= 0x01;
|
||||||
|
|
||||||
WIIUSE_DEBUG("Sending command: %02x %02x", cmd->data[0], cmd->data[1]);
|
//WIIUSE_DEBUG("Sending command: %02x %02x", cmd->data[0], cmd->data[1]);
|
||||||
wiiuse_io_write(wm,cmd->data,cmd->len);
|
wiiuse_io_write(wm,cmd->data,cmd->len);
|
||||||
}
|
}
|
||||||
|
|
||||||
static __inline__ void __wiiuse_push_command(struct wiimote_t *wm,struct cmd_blk_t *cmd)
|
static inline void __wiiuse_push_command(struct wiimote_t *wm,struct cmd_blk_t *cmd)
|
||||||
{
|
{
|
||||||
uint level;
|
uint level;
|
||||||
|
|
||||||
|
@ -657,7 +657,7 @@ s32 WPAD_ReadEvent(s32 chan, WPADData *data)
|
|||||||
struct _wpad_cb *wpdcb = NULL;
|
struct _wpad_cb *wpdcb = NULL;
|
||||||
WPADData *lstate = NULL,*wpadd = NULL;
|
WPADData *lstate = NULL,*wpadd = NULL;
|
||||||
|
|
||||||
if(chan<WPAD_CHAN_0 || chan>=WPAD_MAX_WIIMOTES) return WPAD_ERR_BAD_CHANNEL;
|
//if(chan<WPAD_CHAN_0 || chan>=WPAD_MAX_WIIMOTES) return WPAD_ERR_BAD_CHANNEL;
|
||||||
|
|
||||||
_CPU_ISR_Disable(level);
|
_CPU_ISR_Disable(level);
|
||||||
if(__wpads_inited==WPAD_STATE_DISABLED) {
|
if(__wpads_inited==WPAD_STATE_DISABLED) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user