Skip to content

raw mouse input #22

@SArpnt

Description

@SArpnt

i use linux with a high dpi mouse and low os sensitivity setting. in mbw when i move my mouse, even at the highest sensitivity setting available, it's way slower than i use in any other game and the movement is incredibly inaccurate (slow movements don't move at all, faster movements have speed in steps)

pretty sure it can be fixed with a one line change, just use unadjustedMovement when you request the pointer lock
https://developer.mozilla.org/en-US/docs/Web/API/Pointer_Lock_API#requestpointerlock

let ret = document.documentElement.requestPointerLock?.() as any as Promise<void>;

you probably don't want to change it directly since it would mess up mouse sensitivity for a lot of the people already playing. maybe add a "raw mouse input" option to the settings to enable this? nearly all 3d games use raw mouse input by default but if it's an option you could leave it off for all the people that have already played and set their options

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions