summaryrefslogtreecommitdiff
path: root/test/cube.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/cube.cxx')
-rw-r--r--test/cube.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/cube.cxx b/test/cube.cxx
index 9abf442ad..09e50f5b6 100644
--- a/test/cube.cxx
+++ b/test/cube.cxx
@@ -54,6 +54,7 @@ public:
class cube_box : public Fl_Gl_Window {
void draw();
+ int handle(int);
public:
double lasttime;
int wire;
@@ -123,6 +124,14 @@ void cube_box::draw() {
glEnable(GL_DEPTH_TEST);
}
+int cube_box::handle(int e) {
+ switch (e) {
+ case FL_ENTER: cursor(FL_CURSOR_CROSS); break;
+ case FL_LEAVE: cursor(FL_CURSOR_DEFAULT); break;
+ }
+ return Fl_Gl_Window::handle(e);
+}
+
#endif
Fl_Window *form;