mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 09:23:53 +00:00
added mouse button settings for 3D scene (not in use yet)
This commit is contained in:
parent
41191ea367
commit
39b7340580
1 changed files with 35 additions and 0 deletions
|
@ -371,6 +371,41 @@ void CSMSettings::UserSettings::buildSettingModelDefaults()
|
||||||
"list go to the first/last item");
|
"list go to the first/last item");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declareSection ("scene-input", "3D Scene Input");
|
||||||
|
{
|
||||||
|
QString left ("Left Mouse-Button");
|
||||||
|
QString cLeft ("Ctrl-Left Mouse-Button");
|
||||||
|
QString right ("Right Mouse-Button");
|
||||||
|
QString cRight ("Ctrl-Right Mouse-Button");
|
||||||
|
QString middle ("Middle Mouse-Button");
|
||||||
|
QString cMiddle ("Ctrl-Middle Mouse-Button");
|
||||||
|
|
||||||
|
QStringList values;
|
||||||
|
values << left << cLeft << right << cRight << middle << cMiddle;
|
||||||
|
|
||||||
|
Setting *primaryNavigation = createSetting (Type_ComboBox, "p-navi", "Primary Camera Navigation Button");
|
||||||
|
primaryNavigation->setDeclaredValues (values);
|
||||||
|
primaryNavigation->setDefaultValue (left);
|
||||||
|
|
||||||
|
Setting *secondaryNavigation = createSetting (Type_ComboBox, "s-navi", "Secondary Camera Navigation Button");
|
||||||
|
secondaryNavigation->setDeclaredValues (values);
|
||||||
|
secondaryNavigation->setDefaultValue (cLeft);
|
||||||
|
|
||||||
|
Setting *primaryEditing = createSetting (Type_ComboBox, "p-edit", "Primary Editing Button");
|
||||||
|
primaryEditing->setDeclaredValues (values);
|
||||||
|
primaryEditing->setDefaultValue (right);
|
||||||
|
|
||||||
|
Setting *secondaryEditing = createSetting (Type_ComboBox, "s-edit", "Secondary Editing Button");
|
||||||
|
secondaryEditing->setDeclaredValues (values);
|
||||||
|
secondaryEditing->setDefaultValue (cRight);
|
||||||
|
|
||||||
|
values << "Context Sensitive";
|
||||||
|
|
||||||
|
Setting *selection = createSetting (Type_ComboBox, "select", "Selection Button");
|
||||||
|
selection->setDeclaredValues (values);
|
||||||
|
selection->setDefaultValue (middle);
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* There are three types of values:
|
* There are three types of values:
|
||||||
|
|
Loading…
Reference in a new issue