New games every week!
JSE - Controller Day Two
Blog
2nd May 2021
I spent a lot of yesterday fiddling with controller code some more.
-=-=- You can Play with JSE here. It's fairly complicated looking code, but all of the input can be gained from the single GamePad() command. There's the four face buttons, four shoulder buttons, Start and Select, DPad, Two thumbsticks. There's also onscreen controls that appear if you toggle the new button on the top-right of the JSE GUI. (I'll try to make this toggle be automagical, in future, but that may not be ideal in all situations..!) I've spotted a few syntax issues, though. Like how you have to write "0-1" instead of just "-1".. The language currently sees that as.. 000000 = n1 000001 = m- It reaches the "m"aths symbol, and tries to take "The previous number" (1) away from the 0'th number (1), leaving a resulting value of 0.. Hmmm.. I need to account for "numbers that are negative numbers", without breaking any instances of actual subtraction.. A line like, "7+-1" is currently baffling to the script engine, and if I'm completely honest, it's quite baffling to me, too! Anyway, the controller code is getting better. I need to fix the "combined" values, as they're not working as nicely as they oughta. I also need to dig out my old windows laptop and stress test the controller support. It "works" on the Mac, but I only appear to have one single controller that works with it! My PS4 Dualshock seems to work perfectly fine, but all my older wired controllers don't seem to be doing a thing. Grrrr. (Maybe I should buy a PS5, just so I have another controller in the house....??) I left the Windows Laptop charging overnight, so I guess at some point I'll be sitting on the couch with two laptops, and half a dozen wired controllers strewn around me, like some kind of crazy videogame developer!! Something to look forward to..! Views 102, Upvotes 19
Daily Blog
,
Jse
New games every week!
|