19 #include "umserver.hpp" 24 static bool has_xtest;
27 static unsigned int Bmask_Count;
30 static unsigned int Mmask_Count;
32 static unsigned int xbuttonToMask(
int xbtn_no);
33 static unsigned int mbuttonToMask(
int xbtn_no);
34 static unsigned int maskToXButton(
unsigned int btn_mask);
35 static unsigned int keySymToModMask(
unsigned long mod_keysym);
36 static unsigned long modMaskToKeySym(
unsigned int mod_mask);
44 void leaveLocalDisplay();
45 void enterLocalDisplay();
47 void getNativePointer(
long& x,
long& y);
51 void getPointer(
const MouseFlow&,
long& x,
long& y);
55 bool getPointer(
const MouseFlow&,
Pos&,
bool check_props =
false);
64 void sendButton(
MouseFlow&,
int btn_id,
bool press,
Pos* use_pos = 0);
69 void sendMessage(
USocket*,
const char* message);
72 void getXPointer(
long& x,
long& y);
73 bool getXPointer(
Pos&);
74 void warpXPointer(
long x,
long y);
76 void sendXKey(
MouseFlow&,
unsigned long keysym,
bool press,
Pos* use_pos);
77 void sendXButton(
MouseFlow&,
int btn_id,
bool press,
Pos* use_pos);
78 void sendXMotion(
MouseFlow&,
long x,
long y,
bool move_ptr);
79 void sendXMessage(WindowID,
const char* message);
UMS mouse event flow.
Definition: flow.hpp:40
void warpPointer(MouseFlow &, long x, long y)
get/set the location of the pointer of this flow.
Definition: events.cpp:98
position on the screen
Definition: umserver.hpp:81
UMS server main class.
Definition: umserver.hpp:152
Ubit Simple Sockets.
Definition: usocket.hpp:64
void sendKey(MouseFlow &, unsigned long keysym, bool press, Pos *use_pos=0)
pos : envoyer event a cette position directement sans gerer le MouseFlow ni afficher le ptr (utilise ...
Definition: events.cpp:166
void warpNativePointer(long x, long y)
get/set the location of the native pointer.
Definition: events.cpp:89
Definition: macevents.hpp:23
void sendMotion(MouseFlow &outflow, long x, long y, bool move_ptr)
move sthe pointer if 'move_pointer' is true.
Definition: events.cpp:115