renderer: add zoom with detached camera (#12548)
This commit is contained in:
parent
6535ff07c9
commit
e4a8f2b14f
6 changed files with 129 additions and 15 deletions
|
|
@ -1658,6 +1658,12 @@ inline static const std::vector<SConfigOptionDescription> CONFIG_OPTIONS = {
|
|||
.type = CONFIG_OPTION_BOOL,
|
||||
.data = SConfigOptionDescription::SBoolData{false},
|
||||
},
|
||||
SConfigOptionDescription{
|
||||
.value = "cursor:zoom_detached_camera",
|
||||
.description = "Detaches the camera from the mouse when zoomed in, only ever moving to keep the mouse in view",
|
||||
.type = CONFIG_OPTION_BOOL,
|
||||
.data = SConfigOptionDescription::SBoolData{true},
|
||||
},
|
||||
SConfigOptionDescription{
|
||||
.value = "cursor:enable_hyprcursor",
|
||||
.description = "whether to enable hyprcursor support",
|
||||
|
|
|
|||
|
|
@ -734,6 +734,7 @@ CConfigManager::CConfigManager() {
|
|||
registerConfigVar("cursor:zoom_factor", {1.f});
|
||||
registerConfigVar("cursor:zoom_rigid", Hyprlang::INT{0});
|
||||
registerConfigVar("cursor:zoom_disable_aa", Hyprlang::INT{0});
|
||||
registerConfigVar("cursor:zoom_detached_camera", Hyprlang::INT{1});
|
||||
registerConfigVar("cursor:enable_hyprcursor", Hyprlang::INT{1});
|
||||
registerConfigVar("cursor:sync_gsettings_theme", Hyprlang::INT{1});
|
||||
registerConfigVar("cursor:hide_on_key_press", Hyprlang::INT{0});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue