added wheel mouse support
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@55 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
09311a0fed
commit
17d9c67ce3
@ -159,6 +159,8 @@ enum RDP_INPUT_DEVICE
|
||||
#define MOUSE_FLAG_BUTTON1 0x1000
|
||||
#define MOUSE_FLAG_BUTTON2 0x2000
|
||||
#define MOUSE_FLAG_BUTTON3 0x4000
|
||||
#define MOUSE_FLAG_BUTTON4 0x0280
|
||||
#define MOUSE_FLAG_BUTTON5 0x0380
|
||||
#define MOUSE_FLAG_DOWN 0x8000
|
||||
|
||||
/* Raster operation masks */
|
||||
|
@ -183,6 +183,10 @@ uint16 xkeymap_translate_button(unsigned int button)
|
||||
return MOUSE_FLAG_BUTTON3;
|
||||
case Button3: /* right */
|
||||
return MOUSE_FLAG_BUTTON2;
|
||||
case Button4: /* wheel up */
|
||||
return MOUSE_FLAG_BUTTON4;
|
||||
case Button5: /* wheel down */
|
||||
return MOUSE_FLAG_BUTTON5;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user