[LinksOS CVS Commit]kernel/hw/x86/native mouse.cpp,NONE,1.1
Status: Inactive
Brought to you by:
terencevs
|
From: <bl...@to...> - 2003-01-14 23:02:36
|
Update of /cvsroot/linksos/kernel/hw/x86/native In directory router-internal.tossell.net:/tmp/cvs-serv30416 Added Files: mouse.cpp Log Message: Title: Mouse Changes: First Effects: Mouse support a= blokkie (tfe...@wa...) b= --- NEW FILE: mouse.cpp --- //void show_mouse(void) { const int MAX_Y = 480; const int MAX_X = 640; asm { mov ax, 1 // Set ax to show the mouse int 0x33 // Call the mouse interrupt //Constrain mouse horizontal movement mov ax, 7 mov cx, 0 //Min range mov dx, MAX_X-2 //Max range int 0x33 // Call the mouse interrupt //Constrain mouse vertical movement mov ax, 8 mov cx, 0 //Min range mov dx, MAX_Y-2 //Max range int 0x33 // Call the mouse interrupt } } |