GestureManager
- class omni.ui.scene.GestureManager
Bases:
pybind11_object
The object that controls batch processing and preventing of gestures. Typically each scene has a default manager and if the user wants to have own prevention logic, he can reimplement it.
Methods
__init__
(self, **kwargs)Constructor.
amend_input
(self, arg0)Called once a frame.
can_be_prevented
(self, arg0)Called per gesture.
should_prevent
(self, arg0, arg1)Called per gesture.
- __init__(self: omni.ui_scene._scene.GestureManager, **kwargs) None
Constructor.
- `kwargsdict`
See below
### Keyword Arguments:
- amend_input(self: omni.ui_scene._scene.GestureManager, arg0: omni::ui::scene::MouseInput) omni::ui::scene::MouseInput
Called once a frame. Should be overriden to inject own input to the gestures.
- can_be_prevented(self: omni.ui_scene._scene.GestureManager, arg0: omni.ui_scene._scene.AbstractGesture) bool
Called per gesture. Determines if the gesture can be prevented.
- should_prevent(self: omni.ui_scene._scene.GestureManager, arg0: omni.ui_scene._scene.AbstractGesture, arg1: omni.ui_scene._scene.AbstractGesture) bool
Called per gesture. Determines if the gesture should be prevented with another gesture. Useful to resolve intersections.