Native controller support: Toggle enhancement

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
Darkenedroom
Average
Average
Posts: 9
Joined: Tue Jun 27, 2023 8:35 pm

Native controller support: Toggle enhancement

Post by Darkenedroom »

Hi,

Firstly, the native controller support is already pretty awesome, so this enhancement falls firmly into the 'nice to have' category. Had a brief scan through the other suggestions but I don't think this has come up before.

As there are a quite a number of assignable commands, the suggestion is to allow a controller button to be assigned as a dedicated toggle button. (e.g. Joystick button 4: toggle)

The other command assignments could either be a 'button x' or 'toggle + button x'. So as an example:
Fire lasers: button 1
Toggle weapons lockdown: toggle + button 1 (button 4 + button1)

If button 3 is assigned as the toggle then:
Toggle weapons lockdown: toggle + button 1 (button 3 + button1)

This effectively doubles the assignable buttons with the loss of a single controller button, which becomes the dedicated toggle. Obviously you could only use the toggle if it was assigned.

This is already possible through the use of vendor profiling software for hotas setups but I'm guessing those that use gamepads would also benefit from more command assignments.

In order to limit the scope of the enhancement, I'm not suggesting the following:
  • Axes toggling, not sure how useful this would be, so only applicable to buttons.
  • Mode select, no sort of complex multiple mode selection, just a single toggle.
Best regards,
DarkenedRoom
User avatar
Cholmondely
Archivist
Archivist
Posts: 5884
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: Native controller support: Toggle enhancement

Post by Cholmondely »

I believe that Kanthoney wrote the vanilla game code for this sort of thing.

He disappeared yonks ago, I'm afraid. Of our remaining developers, perhaps Getafix might be up to this, but he rarely visits nowadays.
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Darkenedroom
Average
Average
Posts: 9
Joined: Tue Jun 27, 2023 8:35 pm

Re: Native controller support: Toggle enhancement

Post by Darkenedroom »

Thanks to the already awesome native controller support, it was definitely more 'nice to have' rather than needed.

But it did get me thinking, fairly shortly I'll have to add an article to my site about my TM Warthog setup for Oolite and once published I'll add a quick msg to the joystick topic, may be useful for others.
Post Reply