Loading
December 18, 2014, 12:16:25 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome!
 
   Forum Home   Help Search Forum Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: Hanndle mouse press  (Read 721 times)
taigi100
Newbie
*
Offline Offline

Posts: 19


« on: January 11, 2012, 11:53:54 AM »

ok so as far as i saw we have a function like
void keypress(unsigned char key,int x, int y)
How do i hanndle the mouse presses?
Logged
Michael Hall
Administrator
Hero Member
*****
Offline Offline

Posts: 975



« Reply #1 on: January 11, 2012, 12:38:42 PM »

I've done this for Win32. For GLUT, you use

Code:
glutMouseFunc()

The details can be found here.

http://www.opengl.org/resources/libraries/glut/spec3/node50.html#SECTION00085000000000000000

Mike
Logged
taigi100
Newbie
*
Offline Offline

Posts: 19


« Reply #2 on: January 11, 2012, 01:33:36 PM »

thnx
Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!