Changes

Jump to: navigation, search

Mouse Lock API Points of Interest

297 bytes added, 14:43, 11 November 2011
no edit summary
This page is for tracking different parts of the Firefox code that relate to the mouse in different ways.
 
I suggest looking at widget/src/*/nsWindow.cpp for starters. It seems like the OS-Specific mouse stuff is all done in there.
 
Try researching in different OS APIs about setting the mouse cursor position directly, it should turn up some interesting results.
==WIN32 API==
* [http://mxr.mozilla.org/mozilla-central/source/widget/src/windows/nsIMM32HandlernsWindow.cpp#2074 3874 Internal mouse event tracking?Here's some code that actually locks the mouse into a rectangle with no width or height in the center of the screen in WIN32.* [http://mxrpastebin.mozilla.orgcom/mozilla-central/source/widget/src/windows/nsWindow.cpp#5948 Internal mouse event tracking 2?]gNmh1uhz* or [http://mxrpastebin.mozilla.orgcom/mozilla-central3YBfXxM2 http:/source/widget/src/windowspastebin.com/nsWindow.cpp#3874 Internal mouse event tracking 3?3YBfXxM2](requires adding the mMousePos and mMouseLock member variables)
4
edits

Navigation menu