Motion Input: Add nunchuk support.

This commit is contained in:
rlnilsen
2019-11-04 04:19:33 +01:00
parent 15fc71cfcf
commit 965781ea9d
12 changed files with 268 additions and 16 deletions

View File

@ -108,16 +108,7 @@ void WiimoteEmuExtension::CreateNunchukLayout()
layout->addWidget(
CreateGroupBox(tr("Buttons"),
Wiimote::GetNunchukGroup(GetPort(), WiimoteEmu::NunchukGroup::Buttons)),
1, 0);
layout->addWidget(CreateGroupBox(tr("Shake"), Wiimote::GetNunchukGroup(
GetPort(), WiimoteEmu::NunchukGroup::Shake)),
0, 1, -1, 1);
layout->addWidget(CreateGroupBox(tr("Tilt"), Wiimote::GetNunchukGroup(
GetPort(), WiimoteEmu::NunchukGroup::Tilt)),
0, 2, -1, 1);
layout->addWidget(CreateGroupBox(tr("Swing"), Wiimote::GetNunchukGroup(
GetPort(), WiimoteEmu::NunchukGroup::Swing)),
0, 3, -1, 1);
0, 1);
m_nunchuk_box->setLayout(layout);
}