Hi WebKitGtk+,


I'm working on the Pointer Lock API to enable it in WebKitGTK+.



The Pointer Lock API provides for input methods of applications based on the 
movement of the mouse, not just the absolute position of a cursor. A popular 
example is that of first person movement controls in three dimensional graphics 
applications such as games. Movement of the mouse is interpreted for rotation 
of the view-port, there is no limit to how far movement can go, and no mouse 
cursor is displayed.



Chromium and Firefox support this feature as an experimental one, as you can 
see in the compatibility table: 
https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock#Browser_compatibility



More information can be found here:

https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html

https://developer.mozilla.org/en-US/docs/WebAPI/Pointer_Lock

http://www.chromium.org/developers/design-documents/mouse-lock



My latest patch can be downloaded from:

https://bugs.webkit.org/show_bug.cgi?id=99036



You are welcome to download the patch an try it with demos:

http://threejs.org/examples/misc_controls_pointerlock.html

http://media.tojicode.com/q3bsp/ - Quake 3 demo!



Good article about Pointer Lock API:

http://www.html5rocks.com/en/tutorials/pointerlock/intro/



So far, I have more or less complete implementation of the feature including 
IPC communication, platform related logic for GTK port, changes in WTR, but 
haven't yet considered permission request. I initially followed Chromium 
implementation, so I would like some opinions on WebCore and platform related 
changes. A review would be much appreciated!



Thanks,
Anton
_______________________________________________
webkit-gtk mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-gtk

Reply via email to