Skip to content

[core] GetMouseDelta() X and Y don't work correctly on web #2314

@mandar1jn

Description

@mandar1jn

WARNING: Please, read this note carefully before submitting a new issue:

It is important to realise that this is NOT A SUPPORT FORUM, this is for reproducible BUGS with raylib ONLY.

There are lots of generous and helpful people ready to help you out on raylib Discord forum or raylib reddit.

Remember that asking for support questions here actively takes developer time away from improving raylib.


Please, before submitting a new issue verify and check:

  • I tested it on latest raylib version from master branch
  • I checked there is no similar issue already reported
  • My code has no errors or misuse of raylib

Issue description

Looking at the source code, it is clear that platform web is not supported by the functions mentioned above. I noticed this while working on my gamejam project. I might create a pr tomorrow. Note that the problem is not the mouse, but when using touch. I get there are the GetTouchX and Y functions, but touch doesn't give an option for when touch is released. If this would be used as a counter argument, then there is no reason why GetMousePosition does work.

Environment

Building for the web

Issue Screenshot

If possible, provide a screenshot that illustrates the issue. Usually an image is better than a thousand words.

Code Example

Can't currently provide one

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