Motion Input: Add "enable" checkbox for motion controlled cursor.

This commit is contained in:
rlnilsen
2019-10-29 15:56:36 +01:00
parent d67a2304b0
commit f7a50545e3
2 changed files with 8 additions and 1 deletions

View File

@ -18,7 +18,8 @@
namespace ControllerEmu
{
IMUCursor::IMUCursor(std::string name, std::string ui_name)
: ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUCursor)
: ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUCursor,
ControlGroup::CanBeDisabled::Yes)
{
controls.emplace_back(std::make_unique<Input>(Translate, _trans("Recenter")));