summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/rdp.h
diff options
context:
space:
mode:
Diffstat (limited to 'xorg/server/module/rdp.h')
-rw-r--r--xorg/server/module/rdp.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/xorg/server/module/rdp.h b/xorg/server/module/rdp.h
index 0cc5d6ee..ab9f2a8c 100644
--- a/xorg/server/module/rdp.h
+++ b/xorg/server/module/rdp.h
@@ -35,10 +35,36 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define RDPMIN(_val1, _val2) ((_val1) < (_val2) ? (_val1) : (_val2))
#define RDPMAX(_val1, _val2) ((_val1) < (_val2) ? (_val2) : (_val1))
+#define RDPCLAMP(_val, _lo, _hi) \
+ (_val) < (_lo) ? (_lo) : (_val) > (_hi) ? (_hi) : (_val)
/* defined in rdpClientCon.h */
typedef struct _rdpClientCon rdpClientCon;
+struct _rdpPointer
+{
+ int cursor_x;
+ int cursor_y;
+ int old_button_mask;
+ int button_mask;
+ DeviceIntPtr device;
+};
+typedef struct _rdpPointer rdpPointer;
+
+struct _rdpKeyboard
+{
+ int pause_spe;
+ int ctrl_down;
+ int alt_down;
+ int shift_down;
+ int tab_down;
+ /* this is toggled every time num lock key is released, not like the
+ above *_down vars */
+ int scroll_lock_down;
+ DeviceIntPtr device;
+};
+typedef struct _rdpKeyboard rdpKeyboard;
+
/* move this to common header */
struct _rdpRec
{
@@ -63,7 +89,12 @@ struct _rdpRec
CompositeProcPtr Composite;
GlyphsProcPtr Glyphs;
+ /* keyboard and mouse */
miPointerScreenFuncPtr pCursorFuncs;
+ /* mouse */
+ rdpPointer pointer;
+ /* keyboard */
+ rdpKeyboard keyboard;
/* RandR */
RRSetConfigProcPtr rrSetConfig;