feat: add dispatcher to trigger magnification

closes: #51
This commit is contained in:
Virt 2025-01-10 22:06:23 +01:00
commit 94eaf75d09
8 changed files with 80 additions and 2 deletions

View file

@ -516,3 +516,10 @@ void CDynamicCursors::calculate(EModeUpdate type) {
void CDynamicCursors::setMove() {
isMove = true;
}
void CDynamicCursors::dispatchMagnify(std::optional<int> duration, std::optional<float> size) {
static auto* const* PSHAKE = (Hyprlang::INT* const*) getConfig(CONFIG_SHAKE);
if (!**PSHAKE) return;
shake.force(duration, size);
}