Loading
Tweet
Videos
Blog
News
Forum
Games
Shop
Jobs
prev
Jelly Tower
Basic File Input and Output
Rotations and Rigid Body Dyn...
Pack Up the Toy
Blessed Be the Lord
Lecture 4
Lecture 14
After Effects - the Flower Demo
The Discovery of the Electro...
Multiplication and Inverse M...
next
June 20, 2013, 12:49:49 AM
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 398 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: 906
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...