locked
How to simulate mouse wheel scrolling in C# RRS feed

  • Question

  • I'm trying to simulate mouse wheel movement when a button on the gamepad is pressed. So far I've imported the mouse_event() function from user32.dll, but I don't know the value of the MOUSEEVENTF_WHEEL flag. If anyone can help I'd greatly appreciate it.
    Friday, December 1, 2006 1:40 AM

Answers

  • looking at some resources...

    MIDDLEDOWN = 0x20, /*middle button down */
    MIDDLEUP = 0x40, /* middle button up */
    WHEEL = 0x800, /*wheel button rolled */

    Friday, December 1, 2006 1:54 AM

All replies

  • looking at some resources...

    MIDDLEDOWN = 0x20, /*middle button down */
    MIDDLEUP = 0x40, /* middle button up */
    WHEEL = 0x800, /*wheel button rolled */

    Friday, December 1, 2006 1:54 AM
  • Thanks! That does it.
    Friday, December 1, 2006 2:11 AM
  • Thanks! a lot man I was searching for it on so many websites... finally I got it.
    Friday, September 21, 2012 1:31 PM