Function EnableSnesMouse
Jump to navigation
Jump to search
Prototype |
|
---|---|
Description |
Activates the SNES mouse support and starts keeping track of the mouse movement and drawing the cursor on the screen. |
Parameters |
|
Returns |
Void |
Video Modes |
All |
Since |
V3 |
Notes |
The SNES mouse is very slow to settle and the current implementation is not very efficient so it takes about 2.5 scanlines to fetch the extra X/Y axis bits. |
Example:
#include "data/cursor.inc" #define MOUSE 2 ... //If there's a mouse connected to the second port, activate it if(((DetectControllers() >> 2) && 0x3 == MOUSE) { EnableSnesMouse(0,map_cursor); }