Loading
Tweet
Videos
Blog
News
Forum
Games
Shop
Jobs
prev
Lecture 3
Differential Equations
Petri Lab
Making Color Corrections
Lecture 6
Tharsis 3D
Conservation of Energy in Hi...
Animating a Still (Part 1)
Working with the Timeline
Steam of War
next
May 19, 2013, 09:59:11 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Welcome!
Forum Home
Help
Search Forum
Login
Register
XoaX.net Forum
>
Subjects
>
C++
>
OpenGL
(Moderator:
bluetoo
) >
Hanndle mouse press
Pages: [
1
]
Go Down
« previous
next »
Send this topic
|
Print
Author
Topic: Hanndle mouse press (Read 380 times)
taigi100
Newbie
Posts: 19
Hanndle mouse press
«
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
Posts: 900
Re: Hanndle mouse press
«
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
Posts: 19
Re: Hanndle mouse press
«
Reply #2 on:
January 11, 2012, 01:33:36 PM »
thnx
Logged
Pages: [
1
]
Go Up
Send this topic
|
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Subjects
-----------------------------
=> C++
===> Console
===> OpenGL
===> MFC
===> Win32
===> Visual C++ IDE
===> C++ Misc.
===> C
=> Computer Science
===> Algorithms
===> Computer Architecture
===> Graphics 3D
===> Neural Networks
===> UML
===> Development
=> Web Programming
===> PHP
===> HTML
===> CSS
===> Flash
===> Actionscript
===> Java
===> JavaScript
=> Math
=> Physics
=> English
=> Music
=> Children's
=> Software
=> Catholicism
=> Other
===> Puzzles and Tricks
===> How To Use a Computer
=> General Information
===> Site Suggestions
===> Off Topic
Loading...