Mouse in ModeX

How do I get the mouse cursor to work in MODEX

(320x240).




Comments

  • making a mouse in mode 13h (320x200 256 colors) is done by:


    mov ax,0 ; init mouse

    int 33h

    mov ax,1 ; show mouse

    int 33h


    In ModeX (and some other graphics modes) is you don't show the mouse:


    mov ax,0

    int 33h ; mouse still works, but is invisable


    Then you just use the mouse status int:


    mov ax,3

    int 33h

    mov mouse_buttons,bx

    mov mouse_x,cx

    mov mouse_y,dx


    and then you use that information to draw the mouse cursor yourself.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories