Support horizontal scroll with mouse wheel

This commit is contained in:
James Laird-Wah 2016-12-05 10:40:31 +11:00
parent 45f757612f
commit 37a2206347
2 changed files with 6 additions and 0 deletions

View File

@ -245,6 +245,8 @@ enum RDP_INPUT_DEVICE
#define MOUSE_FLAG_BUTTON3 0x4000
#define MOUSE_FLAG_BUTTON4 0x0280
#define MOUSE_FLAG_BUTTON5 0x0380
#define MOUSE_FLAG_BUTTON6 0x0580
#define MOUSE_FLAG_BUTTON7 0x0480
#define MOUSE_FLAG_DOWN 0x8000
/* Raster operation masks */

View File

@ -889,6 +889,10 @@ xkeymap_translate_button(unsigned int button)
return MOUSE_FLAG_BUTTON4;
case Button5: /* wheel down */
return MOUSE_FLAG_BUTTON5;
case 6: /* wheel left */
return MOUSE_FLAG_BUTTON6;
case 7: /* wheel right */
return MOUSE_FLAG_BUTTON7;
}
return 0;