core: joystick support on native platforms #884
Labels
No labels
CI
all
basisu
blog
bug
build
contributor-friendly
core
correctness
deferred
dev
direct3d-headers
docs
driver-os-issue
duplicate
dxcompiler
editor
examples
experiment
feature-idea
feedback
flac
freetype
gamemode
gkurve
glfw
gpu
gpu-dawn
harfbuzz
help welcome
in-progress
infrastructure
invalid
libmach
linux-audio-headers
long-term
mach
mach.gfx
mach.math
mach.physics
mach.testing
model3d
needs-triage
object
opengl-headers
opus
os/linux
os/macos
os/wasm
os/windows
package-manager
priority
proposal
proposal-accepted
question
roadmap
slipped
stability
sysaudio
sysgpu
sysjs
validating-fix
vulkan-zig-generated
wayland-headers
website
wontfix
wrench
www
x11-headers
xcode-frameworks
zig-update
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
hexops/mach#884
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
joystick support was added in https://github.com/hexops/mach-core/pull/12 but as part of the multi-threaded rendering support https://github.com/hexops/mach-core/pull/15 I had to disable it.
To bring it back, we need to adjust the API:
Joystick->GamepadgamepadReady(id)returnstrueor something. But may need more consideration.Another excellent reason to switch to a request-based API:
https://github.com/glfw/glfw/issues/1284
foxxne ran into this on Windows, where initialization was taking ~45s and just displaying a white screen until then. Didn't realize that the application was not broken. Just randomly occurred on their system, was working fine before.
If we switch to a request-based API, then at least once you 'request' joystick access we can document it may take a while (and may block the main thread) if your system is broken (fun!)
Symptoms: unresponsive white window, Windows 11
Suspected cause: recently updated iCue (corsairs thing)
Workaround: reboot