|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API void MayaFlux::bind_fly_preset | ( | const std::shared_ptr< Core::Window > & | window, |
| const std::shared_ptr< Buffers::RenderProcessor > & | processor, | ||
| const ViewportPresetConfig & | config = {}, |
||
| const Kinesis::FlyKeyMap & | key_map = {}, |
||
| const std::string & | name = "default" |
||
| ) |
Bind the fly navigation controller to a window and render processor.
Registers event handlers under the prefix "vp_<name>_". Key assignments default to WASD/QE translation with KP ortho snaps; pass a FlyKeyMap to override any or all bindings. Ortho snap slots set to std::nullopt are silently skipped.
| window | Window supplying input events |
| processor | RenderProcessor that receives the ViewTransform source |
| config | Camera/motion tuning parameters |
| key_map | Key assignments; defaults to WASD/QE + KP snaps |
| name | Unique prefix for registered events; must be unique per window |
Definition at line 72 of file ViewportPreset.cpp.
References MayaFlux::Kinesis::apply_mouse_delta(), MayaFlux::Kinesis::apply_scroll(), MayaFlux::Kinesis::FlyKeyMap::back, MayaFlux::Kinesis::compute_view_transform(), MayaFlux::Kinesis::FlyKeyMap::down, MayaFlux::Kinesis::FlyKeyMap::forward, MayaFlux::Kinesis::FlyKeyMap::left, MayaFlux::Kinesis::make_navigation_state(), name, on_key_pressed(), on_key_released(), on_mouse_move(), on_mouse_pressed(), on_mouse_released(), on_scroll(), MayaFlux::Kinesis::FlyKeyMap::ortho_flip, MayaFlux::Kinesis::FlyKeyMap::ortho_front, MayaFlux::Kinesis::FlyKeyMap::ortho_right, MayaFlux::Kinesis::FlyKeyMap::ortho_top, MayaFlux::IO::Right, MayaFlux::Kinesis::FlyKeyMap::right, and MayaFlux::Kinesis::FlyKeyMap::up.
Referenced by bind_fly_preset(), and bind_viewport_preset().
Here is the call graph for this function:
Here is the caller graph for this function: