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
@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 (๐ก,๐ก)
@jeanayala
bro im in love with the cessna 172 skyhawk!!
1 reply
0 recast
1 reaction
ruz.eth ๐
@ruz.eth
You sir need to give /starcitizen a try
0 reply
0 recast
1 reaction
Matthew
@mpryor.eth
unfathomably based
0 reply
0 recast
1 reaction
Stephan
@stephancill
/microsub tip: 5607 $DEGEN
1 reply
0 recast
0 reaction
text
@4619
???
0 reply
0 recast
0 reaction