Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Programmers Reference 0.02b - <b>int 33h, 0bh (11) read mouse motion counters</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
INT 33h,  0Bh (11)       Read Mouse Motion Counters

    Returns the Horizontal and Vertical Mickey Count.

       On entry:      AX         11h

       Returns:       CX         Horizontal Count
                      DX         Vertical Count

  --------------------------------------------------------------------------

    Function 0Bh returns the Horizontal and Vertical Mickey Count since last
    call to this function. The Mickey count is the distance the mouse has
    moved, in 1/200-of-an-inch increments.

    The Mickey count is always within the range -32768 to 32767.

    . A positive horizontal count specifies a motion to the right. A
      negative horizontal count specifies a motion to the left.

    . A positive vertical count specifies a motion downwards. A
      negative vertical count specifies a motion upwards.

    Overflow is ignored. The mickey count is set to 0 after the call is
    completed.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson