[LinksOS CVS Commit]kernel/hw/mouse mouse.cpp,NONE,1.1 mouse.h,NONE,1.1
Status: Inactive
Brought to you by:
terencevs
|
From: <ke...@to...> - 2003-01-14 23:33:44
|
Update of /cvsroot/linksos/kernel/hw/mouse In directory router-internal.tossell.net:/tmp/cvs-serv31423/mouse Added Files: mouse.cpp mouse.h Log Message: Title: Moved Changes: Moved mouse code to the mouse dir! Effects: Organization man! a=kennyt --- NEW FILE: mouse.cpp --- void show_mouse(void) { const int MAX_Y = 480; const int MAX_X = 640; asm { "mov ax, 1\n" // Set ax to show the mouse "int 0x33\n" // Call the mouse interrupt // Constrain mouse horizontal movement "mov ax, 7\n" "mov cx, 0\n" // Min range "mov dx, MAX_X-2\n" // Max range "int 0x33\n" // Call the mouse interrupt // Constrain mouse vertical movement "mov ax, 8\n" "mov cx, 0\n" // Min range "mov dx, MAX_Y-2\n" // Max range "int 0x33\n" // Call the mouse interrupt } } --- NEW FILE: mouse.h --- #ifndef _MOUSE_H #define _MOUSE_H class MOUSE { public: MOUSE(); // Constructor MOUSE(); // Destructor // Accessors void reset_cursor(void); void show_cursor(void); void hide_cursor(void); void constrain_cursor(void); devices::mouse::info info(void); } #endif /* ! _MOUSE_H */ |