Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / How to map gamepad / joystick keys

Author
Message
Xaby
FPSC Reloaded TGC Backer
17
Years of Service
User Offline
Joined: 17th Apr 2007
Location: Berlin
Posted: 13th Jun 2019 09:27
I don't know, if that is a good way, maybe it is slow, because of the strings I used, but dealing with numbers which can be different depending on the input device is a little bit uncomfortable.
So my idea is as follow:






With this "mapping" the D-pads and the button layout is the same on both controller-types. I guess, any USB generic gamepad could be different, and also this idea would need not only "state", but also "pressed" and "released".
The XBox 360 controller D-pad behaves like it would be seperate buttons, the D-pad on the SNES-like gamepad is morelike it would be a joystick, but without real analoge values.

Login to post a reply

Server time is: 2024-04-19 18:15:57
Your offset time is: 2024-04-19 18:15:57