From 85c2e38825f910d63051a92b609293bbace19fd0 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 1 Feb 2007 21:11:20 +0000 Subject: Update documentation and move glutDeviceGet() into code so we can return the correct value for GLUT_NUM_MOUSE_BUTTONS. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5652 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/glut_compatability.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/glut_compatability.cxx b/src/glut_compatability.cxx index ab84b901c..a960c1375 100644 --- a/src/glut_compatability.cxx +++ b/src/glut_compatability.cxx @@ -423,6 +423,15 @@ int glutLayerGet(GLenum type) { } } +int glutDeviceGet(GLenum type) { + switch (type) { + case GLUT_HAS_KEYBOARD : return 1; + case GLUT_HAS_MOUSE : return 1; + case GLUT_NUM_MOUSE_BUTTONS : return 3; + default : return 0; + } +} + // Get extension function address... GLUTproc glutGetProcAddress(const char *procName) { # ifdef WIN32 -- cgit v1.2.3