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 🤓
7 replies
17 recasts
55 reactions

lmm327 pfp
lmm327
@lmm327
By meditating regularly, we can cultivate a deeper sense of self-awareness and understanding.
0 reply
0 recast
0 reaction