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

Steve pfp
Steve
@stevedylandev.eth
I saw these two images and totally thought you were writing code using a joystick lol ๐Ÿ˜‚ Nothing is more satisfying than solving your own problems with code!!
1 reply
1 recast
4 reactions

Jean Carlos Ayala (๐ŸŸก,๐ŸŸก) pfp
Jean Carlos Ayala (๐ŸŸก,๐ŸŸก)
@jeanayala
bro im in love with the cessna 172 skyhawk!!
1 reply
0 recast
1 reaction

ruz.eth ๐Ÿ„ pfp
ruz.eth ๐Ÿ„
@ruz.eth
You sir need to give /starcitizen a try
0 reply
0 recast
1 reaction

Matthew pfp
Matthew
@mpryor.eth
unfathomably based
0 reply
0 recast
1 reaction

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

text pfp
text
@4619
???
0 reply
0 recast
0 reaction