Skip to content

Add new client side event onClientMouseMove #5215

Description

@gh0st2k2

Is your feature request related to a problem? Please describe.

This event should trigger whenever a raw mouse movement is detected regardless of the cursor state, with it's arguments being both the horizontal and vertical traveled distance in pixels or such. I believe this is doable. The reason for this is that, if you have the game camera fixed at some position (targeting no entity), and then move the mouse, onClientCursorMove event triggers but the arguments dont update, they only update if the cursor is showing, or when the camera is targeting an entity (player, vehicle, ...) regardless of cursor state.

This new event allows for mouse flicking detection, used in anti cheats, and can even be key to implementing first person camera mode in MTA.

Describe the solution you'd like

-- Arguments: distanceX, distanceY : could be negative for left/down directions and positive for right/up directions.

Describe alternatives you've considered

No response

Additional context

No response

Security Policy

  • I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions