Hi guys,
Im in need of a little assistance!
I am trying to write a small game engine for myself and maybe a few friends to use, and im trying to set up a subclass to store keys/buttons/mouseButtons in variables. like so:
public class Controls
{
public Keys forward, backward, strafeLeft, strafeRight, turnLeft, turnRight, lookUp, lookDown;
}
But i need these variables to be able to accept keyboard keys, gamepad buttons and mouse buttons as values.
Does anybody know how to do this, and/or if its even possible?
Regards,
M@t.