mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Add HW_RVL to this - won't compile on Gamecube otherwise
This commit is contained in:
parent
7dc2ca425f
commit
1d621c412c
@ -134,8 +134,10 @@ static void reset_cb(void)
|
|||||||
g_menu = true;
|
g_menu = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void gx_mouse_info(uint32_t joybutton, unsigned port) {
|
static inline void gx_mouse_info(uint32_t joybutton, unsigned port)
|
||||||
|
{
|
||||||
uint8_t i;
|
uint8_t i;
|
||||||
|
#ifdef HW_RVL
|
||||||
ir_t ir;
|
ir_t ir;
|
||||||
|
|
||||||
/* Get the IR data from the wiimote */
|
/* Get the IR data from the wiimote */
|
||||||
@ -147,13 +149,15 @@ static inline void gx_mouse_info(uint32_t joybutton, unsigned port) {
|
|||||||
gx_mouse[port].y = ir.y;
|
gx_mouse[port].y = ir.y;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
gx_mouse[port].valid = false;
|
gx_mouse[port].valid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* reset button state */
|
/* reset button state */
|
||||||
gx_mouse[port].mouse_button = 0;
|
gx_mouse[port].mouse_button = 0;
|
||||||
for (i = 0; i < MAX_MOUSEBUTTONS; i++) {
|
for (i = 0; i < MAX_MOUSEBUTTONS; i++)
|
||||||
|
{
|
||||||
gx_mouse[port].mouse_button |= (joybutton & gx_mousemask[i]) ? (1 << i) : 0;
|
gx_mouse[port].mouse_button |= (joybutton & gx_mousemask[i]) ? (1 << i) : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user