MouseMovedRaw

sfml.window.Event.MouseMovedRaw
See theMouseMovedRaw companion object
final case class MouseMovedRaw(delta: Vector2[Int])

Mouse move raw event subtype.

Raw mouse input data comes unprocessed from the operating system hence "raw". While the MouseMoved position value is dependent on the screen resolution, raw data is not. If the physical mouse is moved too little to cause the screen cursor to move at least a single pixel, no MouseMoved event will be generated. In contrast, any movement information generated by the mouse independent of its sensor resolution will always generate a MouseMovedRaw event.

In addition to screen resolution independence, raw mouse data also does not have mouse acceleration or smoothing applied to it as MouseMoved does.

Raw mouse movement data is intended for controlling non-cursor movement, e.g. controlling the camera orientation in a first person view, whereas MouseMoved is intended primarily for controlling things related to the screen cursor hence the additional processing applied to it.

Currently, raw mouse input events will only be generated on Windows and Linux.

Value parameters

delta

Delta movement of the mouse since the last event.

Attributes

Companion
object

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product