Results 1 to 2 of 2

Thread: glutGetModifiers();?

  1. #1
    Member Contributor
    Join Date
    Apr 2000
    Location
    Staten Island New York
    Posts
    53

    glutGetModifiers();?

    Trying to use GLUT_ACTIVE_CTRL && 'z'
    in keyboard func like this:
    switch(key)
    {
    case: GLUT_ACTIVE_CTRL && 'Z':
    {
    glutGetModifiers();
    doSomething();
    }
    Not working. Please advise. Thank you.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    2,978

    Re: glutGetModifiers();?

    GLUT_ACTIVE__CTRL && 'Z' will be evaluated as a logical expression, and will return either true or false because you are using && (use & if you want to AND two values together), and as long as key doesn't hold the same value as the logical expression, the two functions will not be executed.

    [This message has been edited by Bob (edited 06-04-2000).]

Similar Threads

  1. how to use glutGetModifiers
    By AvalanCh3 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 09-20-2004, 11:04 PM
  2. glutGetModifiers
    By malancha in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-30-2004, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean