Expose finer-grained mouse coords

NEW
Unassigned

Status

()

defect
7 years ago
3 years ago

People

(Reporter: jgilbert, Unassigned)

Tracking

(Blocks 1 bug)

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [games:p?][diamond])

Reporter

Description

7 years ago
We currently don't have a way of exposing (mostly-)raw mouse movement/position data. This is very useful for improved smoothness when using mouse coords/movement.

This is particularly important for games, as better-than-pixel-perfect mouse positioning is necessary to get a smooth feel, and, particularly for FPSs allow for very fine aiming.

Without better precision for mouse coords/movement, some users will have deadzones where they cannot click/move/select/aim/etc. For a 3d view, sometimes these deadzones are as bad as multiple degrees, which causes stuttery rotation and frustration with a 'jumpy' camera.

This seems like it would be most easiest to integrate with pointerlock, but is also possibly analogous to what was needed for high-precision timestamps.

Comment 1

7 years ago
Note that if integrated with pointerlock it should be additional to movementX/Y (like rawX/Y) because the mouse is also subject to WM accelleration etc. which is equally undesired for the raw mouse input as pixel clamping.
Whiteboard: [games:p?] → [games:p3]
Jeff (or Florian?) - would either of you be willing to mentor a community member through this?
Flags: needinfo?(jgilbert)
Reporter

Comment 3

5 years ago
I do not have any expertise regarding how to do this in Gecko or WebAPIs, so I don't think that I can 'mentor' here.
Flags: needinfo?(jgilbert)

Updated

5 years ago
Whiteboard: [games:p3] → [games:p3][diamond]
Whiteboard: [games:p3][diamond] → [games:p?][diamond]
You need to log in before you can comment on or make changes to this bug.