From 2bdad0113b8fd8c09bed87f57c5277896f6445eb Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 2 Jul 2019 23:49:28 +0200 Subject: Set intensity using keyboard up/down --- src/lightctx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lightctx.c b/src/lightctx.c index cfa140f..8551882 100644 --- a/src/lightctx.c +++ b/src/lightctx.c @@ -98,6 +98,11 @@ void attr_movey(struct lightctx *nl, signed int d, int fine) switch ( nl->sel_attr ) { + case INTENSITY : + fix->intensity += chg; + cap_value(&fix->intensity, 0.0, 1.0); + break; + case PANTILT : fix->tilt += chg; cap_value(&fix->tilt, -1.0, 1.0); -- cgit v1.2.3