FEATURES.md.This is intended to be a meta-issue to track feature parity between the various backends.
This is a first draft, please all who have the right to, update this message with what you find missing (be it a feature I forgot or the status of a feature for a platform or a platform entirely)
Each section includes a collapsed description of the features it lists.
Legend:
Display features
| Feature | Windows | MacOS | Linux x11 | Linux Wayland | Android | iOS | Emscripten |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Window initialization | βοΈ | βοΈ | β’ #5 | βοΈ | β’ #33 | β’ #33 | β |
| Providing pointer to init OpenGL | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ | β |
| Providing pointer to init vulkan | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ | β | N/A |
| Window decorations | βοΈ | βοΈ | βοΈ | β’ #306 | N/A | N/A | N/A |
| Window decorations toggle | βοΈ | βοΈ | βοΈ | βοΈ | N/A | N/A | N/A |
| Window resizing | βοΈ | β’ #219 | βοΈ | β’ #306 | N/A | N/A | β |
| Window transparency | β’ #260 | βοΈ | βοΈ | βοΈ | N/A | N/A | N/A |
| Window maximization | βοΈ | βοΈ | βοΈ | βοΈ | N/A | N/A | N/A |
| Window maximization toggle | βοΈ | βοΈ | βοΈ | βοΈ | N/A | N/A | N/A |
| Fullscreen | βοΈ | βοΈ | βοΈ | βοΈ | N/A | N/A | β |
| Fullscreen toggle | βοΈ | βοΈ | βοΈ | βοΈ | N/A | N/A | β |
| HiDPI support #105 | βοΈ | βοΈ | βοΈ | βοΈ | β’ | βοΈ | βοΈ |
Expand details of features
System information
| Feature | Windows | MacOS | Linux x11 | Linux Wayland | Android | iOS | Emscripten |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Monitor list | βοΈ | βοΈ | βοΈ | βοΈ | N/A | N/A | N/A |
Expand details of features
Input handling
| Feature | Windows | MacOS | Linux x11 | Linux Wayland | Android | iOS | Emscripten |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| Mouse events | βοΈ | β’ #63 | βοΈ | βοΈ | N/A | N/A | βοΈ |
| Mouse set location | βοΈ | βοΈ | βοΈ | β | N/A | N/A | N/A |
| Cursor grab | βοΈ | β’ #165 | β’ #242 | β #306 | N/A | N/A | βοΈ |
| Cursor image | βοΈ | βοΈ | βοΈ | β #306 | N/A | N/A | β |
| Touch events | βοΈ | β | βοΈ | βοΈ | βοΈ | βοΈ | βοΈ |
| Multitouch | β | β | βοΈ | βοΈ | β | β | β |
| Keyboard events | βοΈ | βοΈ | βοΈ | βοΈ | β | β | βοΈ |
| Drag&Drop | βοΈ | βοΈ | βοΈ | β #306 | β | β | β |
| Clipboard #162 | β | β | β | β | β | β | β |
| Raw Device Events | β’ | β’ | β’ | β | β | β | β |
Expand details of features
Pending API Reworks
Here are listed Changes in the API that have been merged but are still stubbed out in some platforms
| API Change | Windows | MacOS | Linux x11 | Linux Wayland | Android | iOS | Emscripten |
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
| New API for HiDPI (#315 #319) | βοΈ | βοΈ | βοΈ | βοΈ | β’ | βοΈ | βοΈ |
multitouch included in Touch events?
Not necessarily, I'll add a line for this
Is there a clear definition of what the intended function is for each of these features?
I know there's still some disparity between scaled and unscaled units, and whether window decorations should be included in window size. Platforms like Windows have #196.
Maybe we should have a clear test case for each feature so people can help remove the βs.
Ie Keyboard keymap conversion
Test two contradictory layouts and ensure typing sends the correctly mapped characters in
WindowEvent::ReceivedCharacterevents.
Which btw works in Linux x11.
I've introduced more detailed explanations of what the features represent, as well as expanded the scope of the tables to track API changes that are currently in the works.
Also, I've started reporting in this tables the various still-open issues on the repo when applicable.
@tomaka @mitchmindtree @Ralith : please could you have a look to fill in what you know works/don't work on the plaforms you are familiar with, as well a correct any mistake I would have made. I suggest we try our best to keep this table up to date in waiting for a better solution.
@jwilm I know with alacritty you have a decently large user-base on MacOS and Linux, could you help us fill in the blanks ? Thanks.
Emscripten is missing from this table
Indeed, I've added an emscripten. Are you using it ? Do you have some feedback about what works and what don't ?
@vberger I haven't yet used it but I noticed that it is missing support for multiple canvases.
Can we add a distinction to this issue like so:
βοΈ Working, no known problems
βοΈ Working, with minor problems
β Feature is either missing or has bugs so severe the feature might as well be missing.
It'd just be helpful to have better clarity on where the major problems are.
This is a good idea, I'll integrate this as soon as I can find the time to do it.
Done.
Couple of small updates based on personal experience with winit:
Windows keyboard events are working. We use them in the input handler for Amethyst.
Windows, Mac, and Linux X11 Raw device events are working, so long as raw device only includes mouse movement.
Windows Cursor image and Cursor grab should be working. I haven't tested this myself but the code is written and I see no problems with it.
Currently clipboard support is listed as part of the Drag&Drop umbrella, but seeing as drag and drop is implemented on a bunch of platforms whereas winit doesn't even have an API for clipboard handling yet (unless I'm missing something), I think it would be more helpful to have them as separate rows.
Shouldn't "providing pointer to init vulkan" be changed for macOS and iOS as it's not anymore N/A?
I believe both "Window decorations toggle" and "Window decorations" will be solved for macos once #408 is merged.
I was mistaken about what "Window decorations toggle" meant, but #408 has merged so "Window decorations" for macos can be βοΈ
"providing pointer to init vulkanβ is working perfectly on macOS. Itβs a little bit trickier compared to other platforms since you have to set up a CAMetalLayer by yourself. Iβll contribute some code to ashβs example app when I have time.
https://github.com/tomaka/winit/pull/457 implemented these features on Windows:
get_current_monitor), though that will be fixed pending the necessary additions to core-foundation.EventsLoopProxy is worth adding to the list. I know it's currently unimplemented on iOS.
EventsLoopProxy is also unimplemented on Emscripten, and seems to be present on all other platforms. Though, I guess that should be added in #695 instead (and I'm also not sure what category here it would fit under!)
Closing since #695 was merged. That is not to say that the issues addressed here aren't problems, but thisn't the proper place for tracking them.
Most helpful comment
https://github.com/tomaka/winit/pull/457 implemented these features on Windows: