I’m starting work on re-designing VectorStorm’s old input system; the original one was based around a “virtual controller” that was supposed to be shared among all games. We mapped keyboard, mouse, and other input sources onto that virtual controller, and then games just used that virtual controller directly.
But I’m now getting to the point where I’d really like to add about twelve more buttons, and etc. The whole “virtual controller” model is kind of falling over; I really need to allow individual games to specify their own set of controls for the
vsInput system to manage.
While I’m here, I’ve noticed that VectorStorm’s input remapping code only works for joystick and gamepads; I need to make that work for keyboard and mouse controls, too! This probably means a rewrite of a lot of the input system…
I’ve kind of been banging my head against the design of this system for the last couple hours. Think I’m getting closer, though!