nel-all
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nel] Double Click


From: Cyril 'Hulud' Corvazier
Subject: Re: [Nel] Double Click
Date: Wed, 9 Apr 2003 14:05:50 +0200

> I wonder if anyone has already tested this fonction in mouse_listener. I can 
> get move,up,down,wheel messages but not the Dblclick
one. Could someone tell me how it works on win32?
> Any idea?
> Thanks
> Stephane

Hi St├ęphane,

Win32 windows send the messages WM_xBUTTONDBLCLK only if the window's class has 
the style CS_DBLCLKS.
NeL use this message to detect double clicks and send its messages.

If you use the default window created by the NeL opengl driver, it has not this 
style, so no double click are generated.
(See  nel/src/3d/driver/opengl/driver_opengl.cpp line 303 : wc.style   = 
CS_HREDRAW | CS_VREDRAW ;//| CS_DBLCLKS;  )

If you provide your own window to the driver, you can create it from a class 
with the CS_DBLCLKS style.

You can try the lowlevel mouse (Direct Input), double click is emulated by NeL 
so it should work all the time.

Cyril






reply via email to

[Prev in Thread] Current Thread [Next in Thread]