Hi Maglesh,

Manglesh Sharma wrote:
> Hi,
> 
> Can anybody help me how to capture keyboard events for 
> up/left/right/down arrow keys.
> 
> I want to move particular object with these keys.
> 
>  
> 
> void keyboard(unsigned char k, int x, int y)
> 
> this function can not trap this.

you need to use a separate special keys function. Check out 
http://www.opengl.org/documentation/specs/glut/spec3/node54.html#SECTION00089000000000000000

Hope it helps

        Dirk

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to