Results 1 to 3 of 3

Thread: opengl keyboard event not working

  1. #1
    Newbie Newbie
    Join Date
    Feb 2017
    Posts
    2

    opengl keyboard event not working

    hi! i need help with the opengl keyboard recall event, i am require to Develop the following keyboard control:
    Press Escape key to exit the application
    Press ‘c’ key to display only the Cube
    Press ‘p’ key to display only the Pyramid
    Press ‘s’ key to display both the Cube and the Pyramid

    and here's are my coding which are not working, please kindly advise

    [[ EDIT: Code deleted ]]

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,649
    Please read the Forum Posting Guidelines, paying particular attention to the advice about assignments.

    Aside from that, this is not a debugging service. Don't just post a bunch of code giving no indication that you've even tried to figure out what the problem is on your own.

    That said, if you have "specific" questions about OpenGL APIs or how to use them, feel free to follow-up with those.

  3. #3
    Newbie Newbie
    Join Date
    Feb 2017
    Posts
    2
    Quote Originally Posted by Dark Photon View Post
    Please read the Forum Posting Guidelines, paying particular attention to the advice about assignments.

    Aside from that, this is not a debugging service. Don't just post a bunch of code giving no indication that you've even tried to figure out what the problem is on your own.

    That said, if you have "specific" questions about OpenGL APIs or how to use them, feel free to follow-up with those.
    thanks! managed to resolve those errors. thread closed.

Similar Threads

  1. freeGLUT keyboard input now working
    By CodeOne in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-21-2014, 01:13 PM
  2. alt+tab event not working in Windows 7
    By Barbur in forum OpenGL: Windows
    Replies: 5
    Last Post: 01-19-2011, 01:57 AM
  3. keyboard event
    By cnb789 in forum OpenGL: Windows
    Replies: 0
    Last Post: 02-19-2006, 11:30 PM
  4. My OpenGL keyboard event can't work
    By yexin31 in forum OpenGL: Linux
    Replies: 1
    Last Post: 04-08-2003, 04:20 AM
  5. Release key keyboard event in GLUT?
    By Xelatihy in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-02-2000, 03:26 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