Logo Search packages:      
Sourcecode: xdotool version File versions  Download package

unsigned int xdo_get_input_state ( const xdo_t xdo  ) 

Get the current input state. This is a mask value containing any of the following: ShiftMask, LockMask, ControlMask, Mod1Mask, Mod2Mask, Mod3Mask, Mod4Mask, or Mod5Mask.

Returns:
the input mask

Definition at line 1505 of file xdo.c.

References xdo::xdpy.

                                                   {
  Window root, dummy;
  int root_x, root_y, win_x, win_y;
  unsigned int mask;
  root = DefaultRootWindow(xdo->xdpy);

  XQueryPointer(xdo->xdpy, root, &dummy, &dummy,
                &root_x, &root_y, &win_x, &win_y, &mask);

  return mask;
}


Generated by  Doxygen 1.6.0   Back to index