summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2007-02-01 21:11:20 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2007-02-01 21:11:20 +0000
commit85c2e38825f910d63051a92b609293bbace19fd0 (patch)
treef0724e1833b2afa2bf8425994e680d68ce1d8d76 /src
parenteef635336976f6e80a972950a07993dbc763c9b6 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/glut_compatability.cxx9
1 files changed, 9 insertions, 0 deletions
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