summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-02 23:49:28 +0200
committerThomas White <taw@physics.org>2019-07-02 23:49:28 +0200
commit2bdad0113b8fd8c09bed87f57c5277896f6445eb (patch)
tree249897639d5573f7fb6ed71ff3f12d2221a6056a
parentf5bbe15d3c39a8f6fe891c4d6be23071e142a7ec (diff)
Set intensity using keyboard up/down
-rw-r--r--src/lightctx.c5
1 files changed, 5 insertions, 0 deletions
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);