protonscr

[UX] [Steam Input] Standardize mouse measurements

steamopen General controller / Steam Input
ValveSoftware/steam-for-linux#8733 · opened 2022-08-12 by trankillity · updated 2022-08-12 · 0 comments · github
Ttrankillity 2022-08-12 github

Issue Experienced

Each of the places that you can interact with the mouse in the Steam Input interface on Steam OS has a different measurement for how to measure mouse position/movement.

  1. Mouse region uses a 0-1.0 X/Y float representing absolute percentage of the screen covered.
  2. Relative mouse movement uses static X/Y values which (I believe) represents a pixel-sized movement per activation.
  3. Absolute mouse movement uses static X/Y values which use 0-32767 (the max values used for analog/trigger inputs). This is effectively a percentage of the screen, just pre-conversion to a float (so 32767 in X is 100% in X, 16383 in y is 50% in Y)

Expected Result

It would be good if the UI could unify these values to all represent the same unit of measurement. My suggestion would be to use either a 0-1 float like mouse region, or a 0-100% representation. This would allow resolution agnostic mouse control from within Steam Input (provided the game's UI scales appropriately).

Nothing extracted yet.