Re: Key modifiers state

From: Bertrand Bellenot <bertrand.bellenot_at_cern.ch>
Date: Tue, 14 Mar 2006 21:38:09 +0100


Hi Stanislav,

One possible solution could be to use :

gVirtualX->QueryPointer(fId, wdum1, wdum2, xroot, yroot, x, y, state);

If you look at TVirtualX::QueryPointer :

//______________________________________________________________________________
void TVirtualX::QueryPointer(Window_t /*id*/, Window_t &rootw, Window_t &childw,
                             Int_t &root_x, Int_t &root_y, Int_t &win_x,
                             Int_t &win_y, UInt_t &mask)
{
   // Returns the root window the pointer is logically on and the pointer
   // coordinates relative to the root window's origin.
   //
   // id             - specifies the window
   // rotw           - the root window that the pointer is in
   // childw         - the child window that the pointer is located in, 
if any
   // root_x, root_y - the pointer coordinates relative to the root window's
   //                  origin
   // win_x, win_y   - the pointer coordinates relative to the specified
   //                  window "id"
   // mask           - the current state of the modifier keys and pointer
   //                  buttons


Cheers,
Bertrand.

Stanislav Nesterov wrote:
> Hi ROOTers,
>
> I have one small question. If there any way to know inside
> SomeObject::ExecuteEvent(...) method the state of key modifiers? I
> mean fState field of Event_t struct.
>
> --
> Best regards,
> Stanislav.
>
Received on Tue Mar 14 2006 - 21:38:18 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET