MOΞ pfp
MOΞ
@moe
i've been getting more into the new ms flight simulator 2024 career mode on xbox cloud, so i bought a logitech joystick for it. but it turned out that the joystick doesn't have drivers for macos and doesn't show up as a "standard" game controller, which is what's required for xbox cloud in the browser. tried many third party apps and extension but nothing worked. tried to write a macos driver for it but hit a wall with creating a virtual gamepad on the os level. after some digging, i noticed that chrome gets raw input from the joystick, so i wrote some js code in a bookmark that emulates a standard gamepad by overriding the browser getGamepads function and returning an emulated gamepad with remapped buttons and axes from the joystick. and now it works! the in-flight testing process to remap and tune the inputs was fun 🤓
6 replies
17 recasts
55 reactions

Stephan pfp
Stephan
@stephancill
/microsub tip: 5607 $DEGEN
1 reply
0 recast
0 reaction

$DEGEN Tip Bot pfp
$DEGEN Tip Bot
@degentipbot.eth
✅ 5 607 tipped ∙ 5 607 remaining 7 197 / 12 804 (56%) 🟩🟩🟩🟩🟩🟩⬜⬜⬜⬜
0 reply
0 recast
0 reaction