History

two new customizable actions for use in js

Sam Gondelman committed 11 years ago

Commit 53bbd511 parent fd0efd95 files · +17 −7Browse files

Showing the changes to interface/src/ui/UserInputMapper.cpp (1 of 5 files). Show all

Unified · Split

interface/src/ui/UserInputMapper.cpp+4−0
@@ -248,6 +248,8 @@ void UserInputMapper::assignDefaulActionScales() { · 247 unmodified lines
248248 _actionScales[BOOM_IN] = 1.0f; // 1m per unit
249249 _actionScales[BOOM_OUT] = 1.0f; // 1m per unit
250250 _actionStates[SHIFT] = 1.0f; // on
251+ _actionStates[ACTION1] = 1.0f; // default
252+ _actionStates[ACTION2] = 1.0f; // default
251253 }
252254
253255 // This is only necessary as long as the actions are hardcoded
@@ -266,4 +268,6 @@ void UserInputMapper::createActionNames() { · 12 unmodified lines
266268 _actionNames[BOOM_IN] = "BOOM_IN";
267269 _actionNames[BOOM_OUT] = "BOOM_OUT";
268270 _actionNames[SHIFT] = "SHIFT";
271+ _actionNames[ACTION1] = "ACTION1";
272+ _actionNames[ACTION2] = "ACTION2";
269273 }