Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: FSW on December 01, 2013, 02:38:10 pm

Title: Request: Eight-directional hat input
Post by: FSW on December 01, 2013, 02:38:10 pm
Hello! FS2 Open, as of v3.7.0, does not appear to recognise diagonal hat inputs.

I discovered this when attempting to map lateral and vertical thrust to the joystick hat. A diagonal input is not recognised on the control mapping screen. In-game, a diagonal input has no effect (ie, it does not count as two directional inputs at once).

I am using a workaround using GlovePIE, but would it be possible for FS2 Open to accept eight-directional hat inputs?

Edit: ancient thread excavated: http://www.hard-light.net/forums/index.php?topic=67703
Title: Re: Request: Eight-directional hat input
Post by: MatthTheGeek on December 01, 2013, 02:50:48 pm
May I suggest you try with this build (http://www.hard-light.net/forums/index.php?topic=86206.0), since this is what we're moving towards ?
Title: Re: Request: Eight-directional hat input
Post by: headdie on December 01, 2013, 04:00:42 pm
yep, The_E announced Antipodes 9 which is looking to overhaul the player input system to use SDL 2 across all OS platform builds which should make requests like this much easier, so check it out, but for the time being I foresee input requests being put on hold while Antipodes 9 goes through the dev cycle and we see what will be in from the off and what will need to be added later once it's stable and gameplay neutral
Title: Re: Request: Eight-directional hat input
Post by: m!m on December 01, 2013, 04:37:40 pm
SDL2 supports 8-way hats so when Antipodes makes it into trunk we have the possibility to add support but that will require more changes.
Title: Re: Request: Eight-directional hat input
Post by: chief1983 on December 01, 2013, 05:41:00 pm
Yeah, 8-way HATs, and perhaps even more awesome, multiple input device support will be possible as well.
Title: Re: Request: Eight-directional hat input
Post by: z64555 on December 02, 2013, 06:58:16 am
SDL2 supports 8-way hats so when Antipodes makes it into trunk we have the possibility to add support but that will require more changes.

Namely in making a new set of enumerations to handle the 8-position hat in the controls config code, the supporting functions to map them, and maybe also update the pilot file to read/save the mapping.