Our great sponsors
-
As an extra, I want to be able to control the game with the Nintendo Switch joy cons. I have successfully connected the joy cons and I'm reading the input in the stepping function (6th argument of play - called periodically) instead of the event handling function (5th argument), as the latter only recognizes keyboard and mouse input. Here is an excerpt of what I'm doing in the step function, the full details of handleSwitch can be seen here (essentially read input if the buttons are pressed when the stepping function is called, interpret the input and update the scene).
-
Hmm you'd probably need to dig into the source to figure out what's going on. The SDL2 GameController API (bindings) works with joy cons, as an alternative.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Related posts
- installing SDL2 bindings fails on __stack_chk_fail and __stack_chk_guard when building, any ideas?
- "Unknown GLUT entry glutInit" -- Failing to get Gloss working on Windows
- Revert "video: Prefer Wayland over X11 (take 2)"
- Show HN: Text Lambda, a versatile notebook for your personal data
- Show HN: Play QuakeSpasm – a Quake game engine based on FitzQuake in the browser