Get Raw Mouse Input

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By kapi
:warning: Old Version Published before Godot 3 was released.

I’d like to get the raw movement values produced by the mouse.

InputEventMouseMotion.relative_x and relative_y values are not raw. They are the relative movement of the cursor, which is processed by the OS. The raw values are the values read from the device, prior to the OS processing/filtering/smoothing.

Just to put in context, I’m messing with some 3d fist person examples, and I’m trying to mod them to use raw input.

I don’t think raw mouse input is supported yet, you can open an issue on GitHub (be sure to justify why on it).

Calinou | 2017-03-08 19:18

:bust_in_silhouette: Reply From: Omicron

Are you actually looking for absolute coordinates ?
(as raw relative values do not make sense / or would be the same)

  • int device - Device identifier.
  • Vector2 global_pos - Global position of the mouse pointer.
  • int global_x - Global X coordinate of the mouse pointer.
  • int global_y - Global Y coordinate of the mouse pointer.