New games every week!
Joypad Bug Blog
19th June 2024
Oh no, there's a bug!

-=-=-

Michael Fernie suggested that the main menu of the new GameHandler no longer seems to work with joypad/stick controls.
My initial thought was "Oh no!!!! I broke something!!!"
But then he also mentions playing the game with the joypad, so I'm not 100% sure what's happening.

I do wonder, is it possible that hitting the "A Button" caused the browser to connect the joypad for the first time, but that it also then jumped straight into the game..? That kinda makes sense in my head, but I'm not sure if that's what's happening, so if Michael's reading this and can double check, that'd be great.

Tap once to activate the joypad, and if that then enters the game, die (it's not hard to die!!) and see if the menu works properly.

If that's the case, I can maybe add some sort of "First push" delay to the menu or something. Maybe even flash up a "Joypad Activated!!!" thing.


Joypad Activated!!!



It could also be the case that it's trying to access a different port, that the OS is sending the joypad as, say, Port 2, and just presuming the coder's accounted for that.
Which he hasn't!
In which case, I'm going to have to rewrite the GameHandler code to account for that.

The browser is a little quirky with gamepad support, and it's been awkward trying to get everything to work as well as I have, so it'd be great to know for sure if it's a problem I'm making, or a problem the browser is!

.. And don't get me started on those touchscreen controls!

Meanwhile...



I haven't done any "proper" coding for a good week or so, and that Transpiler's looking rather abandoned, isn't it?
I think today I'll probably have a deep dive back into that again, see if I can finally fix that Goto problem.

Aargh!

On the plus side, the server seems to be nice and stable, now, and I'm down to about 3 or 4 random errors a day, which is much better than the 50 or so an hour I was getting just after the switch!
Phew!

Now if I can get JSE's Transpiler to do that, that'll be awesome!


A.I. Corner



: Download | Suno Link

Alternative version
: Download | Suno Link
Sung by Suno


"Cartoon @Derek tries to repair his joypad, screwdriver, wires, " by ArtFlow.ai
Views 518, Upvotes 5  
Daily Blog , Bugs , Fixes , Jse
New games every week!
Site credits : Jayenkai, one crazy fool who has far too much time on his hands.
(c) Jayenkai 2023 and onwards, RSS feed 101

Blog - Joypad Bug - AGameAWeek