A brand new game
for Windows, HTML5, 3DS Homebrew, iPhone, Android TV and more,
every week,
unless exhausted!
About Games iPhone Pixelart Music Poetry Home Patreon Mailbag Scores
Blog
Redoing the Controller
  12th December, 2017
I started the rewrite of the controller code, last night.

Digging deep, I realised I could probably reuse quite a lot of the old code, since the engine already grabs Joystick data each frame, as well as using a bunch of good-old fashioned numbers to do a lot of the legwork.

-=-=-

I need to get it to do defaults properly, and additionally try to remember configs for different joystick types, so you can plug and unplug at random and it'll (hopefully) keep up.
Numbering the "players" will also be difficult, so for the meantime I'll be sticking to single-player code, only, and making everything control "Player One".

So far, the code "looks" like it should work fine, I think, but I've yet to actually test it, as I also need to add the controller config options into the framework.

That'll be today's task. Coming up with a nice layout that looks fine onscreen, isn't too much of a mess, is easy to navigate with just a gamepad, but that also works with a mouse.
Oh, joy!!

*sigh*

Have I mentioned that I'm not a fan of doing menus!?

Views 19, Upvotes 4, 12th December, 2017
Daily Blog , 2018 Framework
Site credits : Jayenkai, one crazy fool who has far too much time on his hands.
(c) Jayenkai 2017 and onwards.
Blog - Redoing the Controller - AGameAWeek