|
Mouse
A melhor maneira de se mexer com o Mouse e' em Assembly. Suas funcoes sao acessadas atravez da INT 33h. As mais utilizadas estao abaixo:
INT 33 0001 - MS MOUSE v1.0+ - SHOW MOUSE CURSOR
Inp.:
AX = 0001h
INT 33 0002 - MS MOUSE v1.0+ - HIDE MOUSE CURSOR
Inp.:
AX = 0002h
Note: multiple calls to hide the cursor will require multiple calls to
function 01h to unhide it.
INT 33 0003 - MS MOUSE v1.0+ - RETURN POSITION AND BUTTON STATUS
Inp.:
AX = 0003h
Return: BX = button status (see #2800)
CX = column
DX = row
Note: in text modes, all coordinates are specified as multiples of the cell
size, typically 8x8 pixels
|
|
INT 33 0004 - MS MOUSE v1.0+ - POSITION MOUSE CURSOR
Inp.:
AX = 0004h
CX = column
DX = row
Note: the row and column are truncated to the next lower multiple of the cell
size (typically 8x8 in text modes); however, some versions of the
Microsoft documentation incorrectly state that the coordinates are
rounded
INT 33 0005 - MS MOUSE v1.0+ - RETURN BUTTON PRESS DATA
Inp.:
AX = 0005h
BX = button number (see #2801)
Return: AX = button states (see #2800)
BX = number of times specified button has been pressed since last call
CX = column at time specified button was last pressed
DX = row at time specified button was last pressed
Note: at least for the Genius mouse driver, the number of button presses
returned is limited to 7FFFh
INT 33 0006 - MS MOUSE v1.0+ - RETURN BUTTON RELEASE DATA
Inp.:
AX = 0006h
BX = button number (see #2801)
Return: AX = button states (see #2800)
BX = number of times specified button has been released since last call
CX = column at time specified button was last released
DX = row at time specified button was last released
Note: at least for the Genius mouse driver, the number of button releases
returned is limited to 7FFFh
Fonte: Ralph Brown Interrupt List
Geral
Sugestões|
E-Mail| Procura|
Links| Novidades|
Emulação
Emuladores|
Utilitários| Em_Desenvolvimento|
Inf._Técnicas| Discussion_Boards|
DIP_Switches| Pinagem_JAMMA|
Patches| Diversos
Programação
Vídeo_Modo13|
Cominicação_LPT| Joystick|
Teclado| Mouse| Scroll|
Formatos_de_Imagem| Tabela_de_Interrupções|
Compiladores
© PRADO 1996,1997,1998
Pagina
Principal.