mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(connect_wii.c) hidpad_wii_get_axis - style nits
This commit is contained in:
parent
b9d244bd3b
commit
05b8fbf1aa
@ -653,21 +653,21 @@ static int16_t hidpad_wii_get_axis(void *data, unsigned axis)
|
|||||||
|
|
||||||
switch (device->exp.type)
|
switch (device->exp.type)
|
||||||
{
|
{
|
||||||
case EXP_CLASSIC:
|
case EXP_CLASSIC:
|
||||||
switch (axis)
|
switch (axis)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
return device->exp.cc.classic.ljs.x.value * 0x7FFF;
|
return device->exp.cc.classic.ljs.x.value * 0x7FFF;
|
||||||
case 1:
|
case 1:
|
||||||
return device->exp.cc.classic.ljs.y.value * 0x7FFF;
|
return device->exp.cc.classic.ljs.y.value * 0x7FFF;
|
||||||
case 2:
|
case 2:
|
||||||
return device->exp.cc.classic.rjs.x.value * 0x7FFF;
|
return device->exp.cc.classic.rjs.x.value * 0x7FFF;
|
||||||
case 3:
|
case 3:
|
||||||
return device->exp.cc.classic.rjs.y.value * 0x7FFF;
|
return device->exp.cc.classic.rjs.y.value * 0x7FFF;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user