Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » Precisions on keyflags value in MouseMove
Re: Precisions on keyflags value in MouseMove [message #35903 is a reply to message #35900] Sun, 01 April 2012 16:39 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13980
Registered: November 2005
Ultimate Member
Didier wrote on Sun, 01 April 2012 04:06

Hi,

virtual void  MouseMove(Point p, dword keyflags);


In the Ctrl:: help, keyflags is said to contain only SHIFT/TAB/CTRL flags. But when watching the value I noticed that it also contained the mouse buttons (which I was searching for).

Question:
- Is this behaviour OS dependant (I'm on linux).



Should work on both.

Quote:


- If not, then where are the defines/enums associated to the individal bits (mouse left=0x800000, mouse right=0x400000, ....). The ones defined int CtrlCore.h do not fit



That is interesting. The code for linux is based on this piece in CtrlCore/X11Proc.cpp:

bool GetMouseLeft() { GuiLock __; return sModState & Button1Mask; }
bool GetMouseRight() { GuiLock __; return sModState & (Ctrl::Xbuttons >= 3 ? Button3Mask : Button2Mask); }
bool GetMouseMiddle() { GuiLock __; return sModState & (Ctrl::Xbuttons >= 3 ? Button2Mask : 0); }
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Print raw data (direct print)
Next Topic: Introducing OSVGS
Goto Forum:
  


Current Time: Sat May 18 05:31:20 CEST 2024

Total time taken to generate the page: 0.00741 seconds