Now input manager just works

acme_pjz {l Wrote}:Now input manager just worksI'm uploading it to SVN. Currently not all input are managed by InputManager, and the key config screen is a bit ugly. Any improvements and bug tests are welcome!
acme_pjz {l Wrote}:IMHO we should have joystick support and some time ago I have written a game which uses SDL for joystick input.
But we have a minor problem: how we recognize different joysticks? Currently I'd like to assume there is only one joystick plugged to computer when playing MnMSthe reason is if we want to support multiple joysticks we must save the index of joystick and when the game restarts the index may changes; if we use the name of joysticks to identify them, then it won't work under Windows because all joysticks under Windows got the same name
But if we only support one joystick, then in some system it said that there will be a fake joystick, see STK forum, so our program may run into trouble... Any suggestions?
Edward_Lii {l Wrote}:Wouldn't it be best if we could somehow treat them as one, handling axis-x up the same no matter which joystick?
This way it doesn't matter if there's a virtual and/or multiple joysticks.
acme_pjz {l Wrote}:You mean we should treat axis-x up of joystick 1 and axis-y up of joystick 2 the same? This is a good idea, I can implement this
acme_pjz {l Wrote}: But there is still a minor problem, in STK forums some user reports that they have a bogus (virtual) joystick which will constantly send false positivesIMHO currently we should ignore this situation first...
acme_pjz {l Wrote}:I have implemented joystick support in SVN 212. But currently I don't have joysticks, so I can't test my code. Could anybody test the code?
odamite {l Wrote}:Just one thing I would like to see is two different configurations: one for keyboard and the other joystick/gamepad. I don't have my gamepad plugged on my computer all the time when I want to play Me and My Shadow so this feature would be nice.
acme_pjz {l Wrote}:Hi odamite,
The two different key configurations is implemented, please have a try
MCMic {l Wrote}:acme_pjz {l Wrote}:Hi odamite,
The two different key configurations is implemented, please have a try
The up key and the jump key should not be the same one.
On a gamepad I'd like to jump with a button but use the direction cross in the menus for instance.
Same thing for down and activate.
Users browsing this forum: No registered users and 0 guests