It wouldn't work. Learn how input.device and IDCMP work.
Programs don't read some memory location when they need to check mouse position, they ask the OS to send messages (nearly everything is message based) when mouse moves or if "something" happens (menu selected, window close button clicked, disk inserted, etc..) and also most programs want mouse position relative to their window's top/left edge, not absolute coordinate.
|