-rw-r--r-- | src/controller/callbacks/keyboard.c | 8 | ||||
-rw-r--r-- | src/controller/callbacks/reshape.c | 1 | ||||
-rw-r--r-- | src/model/state/state.h | 5 | ||||
-rw-r--r-- | src/view/geometry.c | 6 | ||||
-rw-r--r-- | src/view/init.c | 1 |
5 files changed, 20 insertions, 1 deletions
diff --git a/src/controller/callbacks/keyboard.c b/src/controller/callbacks/keyboard.c index a74ac7b..d657053 100644 --- a/src/controller/callbacks/keyboard.c +++ b/src/controller/callbacks/keyboard.c @@ -22,6 +22,14 @@ keyboard (unsigned char key, int x, int y) glutPostRedisplay (); break; + case 'd': + /* + * Toggle display of the datarose. + */ + S.datarose = !S.datarose; + glutPostRedisplay (); + break; + case 'g': /* * g has been pressed. This is used to load a selection from |