Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Problem with glutKeyboardFunc

Hybrid View

  1. #1
    Newbie Newbie
    Join Date
    Nov 2012
    Posts
    1

    Problem with glutKeyboardFunc

    Hello community

    I start a little 3D software.

    I use my keyboard to change the shape to display (ex : press '1' to display the A shape, press '2' to display the B shape, ....)
    To be sure I use in the function printf to display the pressed key.


    So when I press a key, the key is not printed in the standard output and the shape is not changed.

    But when I close the program, the outputs are printed at once.

    I don't understand what to do to correct the problem......


    Thank you for your help.
    F.

  2. #2
    Member Regular Contributor
    Join Date
    Jan 2011
    Location
    Paris, France
    Posts
    250
    Hello, Flow91

    I think that your problem is relative to how/where you have used the glutKeyboardFunc( myKeyboardFunc ) func and/or the implementation of your myKeyboardFunc(int key, int x, int y)

    Could you please post the source of your little 3D software for that we can see where is the problem ?
    @+
    Yannoo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •