Mouse events for an openGL window

majestik666
Unregistered
 
Post: #1
Hi,

I'm trying to implement an UI in my openGL window interface
and trying to handle the mouse events (for now before doing the keyboard events)
I get the mouse down/up events without any problems.
and the mouse Moved ok (if a button is not down).
but I do NEVER get the mouseDragged event or a mouseMoved event
if my mouse button is down.

I'm looking at TrackingLocation but seems complex for what I want to do,
don't really need multi-threading for now ...

Thanks !
Francois
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #2
Language? API?
Quote this message in a reply
majestik666
Unregistered
 
Post: #3
carbon and C++
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #4
Doh, didn't spot the board the post was in Smile
Quote this message in a reply
Oldtimer
Posts: 834
Joined: 2002.09
Post: #5
Could you post the source for your mouse-drag event handling?
Quote this message in a reply
majestik666
Unregistered
 
Post: #6
well I don't even get the mouseDragged event ...
I do get the mouseDown event but after this one,
no MouseMoved or MouseDragged event until I release
the button (MouseUp) then I get MouseMoved events again ...

I did write a first experiment some time ago using a full screen
window and got the mousedragged event , and I use the
exact same code for event handling ... so I guess that dragged
event doesn't make it to my handler :/

sorry don't have my source code right here...
I'll post it later today.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Full screen mouse events Mister T 17 8,779 Jan 4, 2010 02:55 PM
Last Post: MacMan
  Detecting window focus events Coyote 2 3,416 Oct 23, 2009 03:01 PM
Last Post: Coyote
  Window focus events in Cocoa Jar445 2 5,386 Jan 18, 2009 06:02 PM
Last Post: Jar445
  Mouse Events in NSView Chandhu 1 4,148 Feb 28, 2008 02:08 AM
Last Post: kuon_
  Calculate mouse position in opengl MACnus 1 3,674 Nov 8, 2006 01:02 PM
Last Post: akb825