Future Web Platform Enhancments

Open
#9,544 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@AristurtleDev is already working on this.

Since Sep 17, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement feature

This issue is to track future implementations for the Web platform that are not going in the first release cycle. These are excluded from the first release cycle either because the change is larger than just the web platform and would affect all platforms and needs design discussion, or it's a limitation due to the current vendor versions we use such as SDL2

  • Gamepad Vibration: This is not available in the current SDL2 + Emscripten path for web. Would require updating to SDL3
  • Mouse XButtons: In SDL2 + Emscripten, the switch case check for mouse button explicitly only has cases for left, middle, and right mouse buttons, xbuttons are skipped.
  • Mouse Lock: There is support for this through SDL2 + Emscripten, however implementing this would need to be something that is designed for and implemented on all platforms, not just web. The reason for this is that web is implemented as part of the new MonoGame.Framework.Native project, which we do not declare #if directives for platform specific behavior on the native side. Instead platform specific behavior is handled in the native code. This means a new API like Mouse.LockCursor would need to be implemented for all native platforms, not just web. So a larger design conversation needs to happen for this before implemented.
  • Support Independent MRT Blend State: MojoShader currently emits legacy GLSL ES 1 style source, including gl_FragData[n]. This works for ordinary single output shaders on WebGL2, but multiple fragment outputs rely on the legacy WebGL 1 draw buffers extension path, which is not usable in WebGL2. Supporting MRT with independent blend states requires a WebGL2 compatible GLSL ES 3 shader path. We can add a runtime translation layer now but it's not ideal and would just be a temporary workaround. MonoGame's shader system is being reworked to replace MojoShader, so this feature is being deferred until then.
Dominant language
C#
Stars
14.7k
Forks
3.1k
Avg merge
13h 17m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MonoGame/MonoGame

All issues in MonoGame/MonoGame

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.