KhronosGroup / KhronosGroup/OpenXR-Docs

Get a file descriptor for manual event polling

Open
#123 1 comment 0 reactions 0 assignees View on GitHub
enhancement synced to gitlab
Dominant language
Python
Stars
181
Forks
74
PR merge metrics
No merged PRs in 30d

Description

Right now the only way to get the events is to call the function `xrPollEvent`. It would be quite handy to be able to retrieve a pollable file descriptor (FD for short) from OpenXR and integrate it into another event loop, such as [wayland](https://wayland.freedesktop.org/docs/html/apc.html#Server-structwl__event__source_1a0e7ce1f52dfe04c73b6a7c2263c7ef25) or simply [epoll](https://man7.org/linux/man-pages/man7/epoll.7.html).

I would be interested to work on such extension, if it is deemed useful.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the existing OpenXR event API around xrPollEvent and the requirements for integrating with Wayland or epoll. Define the proposed extension and its platform behavior; done means a documented, accepted design for retrieving a pollable file descriptor and using it for manual event polling.

Written by the indexing model from the issue text.

Assessment

Domain
api, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.