GestureBindings#
- class omni.ui.scene.GestureBindings(
- bindings: dict | str,
- gesture_module: str | dict = None,
Bases:
objectMethods
__init__(bindings[, gesture_module])GestureBindings constructor
parse_binding(binding_str)Parse a single binding string into a GestureBinding.
parse_bindings([gesture_ignore_list])Parse the bindings provided during initialization, optionally ignoring certain keys.
- __init__(
- bindings: dict | str,
- gesture_module: str | dict = None,
GestureBindings constructor
- Parameters:
bindings (dict|str) – A dictionary mapping gesture names to their key bindings or a string that
dictionary. (is a carb-setting key to retrieve the)
module_name – (str|None): The name of the module where the gestures are defined.
- parse_binding(
- binding_str: str,
Parse a single binding string into a GestureBinding.
- Parameters:
binding_str (str) – The binding string to parse.
- Returns:
The parsed gesture binding.
- Return type:
- parse_bindings(
- gesture_ignore_list: list | None = None,
- *args,
- **kwargs,
Parse the bindings provided during initialization, optionally ignoring certain keys.
- Parameters:
gesture_ignore_list (list|None) – Optional list of keys to ignore during parsing.