@Neil And I do have a fromJSON static method on the class, but the class’s internals are similar enough to the raw JSON that the toString method works for both (and I even added a type annotation on this to be sure)
I guess I could say Class.fromJSON(foo).toString() every time but that’s not much shorter
Amusingly, the junk still lines up for some of it—there’s only a few patterns of junk, so it could just be a coincidence, but it could also be some other part of the input still
I recall that the background color used to be white, but the visited chat info page buttons now have a fairly dark blue or purple type background color that makes them hard for me to read, as shown below. Note the screenshot is from 2024 Mathematics Stack Exchange Moderator Election Chat, but it'...
I managed to confuse my code because of the cheap joysticks on my controller
My controller is built kinda cheaply so if you flick a joystick too fast it bounces back the other direction My code is written to not parse input until there’s a frame of no input, so that input chords (like A+L) don’t have to be frame-perfect
My code got confused as to how I managed to push the joystick up and down at the same time
Maybe it’s some kind of analog angle thing that just isn’t capable of actually being analog
Like, trying to pretend the d-pad is a third joystick
I assume this gamepad API tries to be kinda controller-agnostic? So maybe it does that to accommodate controllers where the dpad actually is analog, or just for uniformity with the joysticks
Yeah it's controller-agnostic, it has one array representing all the axes and one representing all the buttons
My axes array is: 0. left stick X 1. left stick Y 2. right stick X 3, 4. always 0 5. right stick Y 6, 7, 8. always 0 9. D-pad
The buttons are objects rather than just numbers. Each object has three values: pressed, touched, and value. For pressure-sensitive buttons like triggers on most controllers, touched = (value > 0) and value is pressure normalized to 0-1. For regular buttons, touched = pressed and value = pressed ? 1 : 0.
My first four buttons are Y, B, A, X, for some reason in that order
I'm going to connect an Xbox 360 controller if I can figure out how and it's probably going to be completely different
Awh, it's not bluetooth, you need a dedicated Xbox 360 receiver. Guess I'm not then
Let me try my brother's mariokart controller
wtf
it uses the same axis for right stick X and ZL/ZR
There is no way to tell whether you're pressing ZL or right stick left
Wait no, I think my brother rebound the controls. Let me reset it and check again
Yep okay that's a quirk of his control scheme. I set it back
oh yeah, the Wii U GamePad and Wii U Pro controller don't have analog triggers, but the Wii U is still compatible with the Wii Classic controller which does
I think the only time I actually saw one IRL was, like… this really weird attempted playdate over the summer in middle school
My singular friend at the time invited me over to his house for a couple hours and also dragged in some people he apparently knew from his previous school
And we mostly just stood around doing literally nothing
But we also briefly played skyblock
That was definitely a forgettable experience :P
Oh yeah I also got really really dehydrated. I’m reminded of that because I’m also currently really really dehydrated
The joys of packing everything up at the last possible minute for a move