Jump to content

UFC SPC button inserts 2 spaces


Go to solution Solved by Akiazusa,

Recommended Posts

Posted

Pressing the SPC button on the UFC inserts 2 spaces, one for pressing and one when releasing the button. Happens when clicking on it with the mouse too

The CDU SPC works as expected, inserting only a single space for one press+release

  • Like 1
  • 11 months later...
  • Solution
Posted (edited)

Hi,sorry for bringing up this topic again despite it's already reported.

But since the team is pushing the development of A-10C recently,is there any chance to let the team have a quick look of this issue.

 

It seems that in the A-10C_2\Cockpit\Scripts\clickabledata.lua or A-10C\Cockpit\Scripts\clickabledata.lua

The current content of the line 700 in both files are.

Quote

elements["PNT-BTN-UFC-SPC"]            = default_button(_("Space"),                                     devices.UFC, device_commands.Button_11, 396)

But most other lines related to similar buttons of UFC is ended with

Quote

nil, nil, false

for example:

Quote

elements["PNT-BTN-UFC-HACK"]        = default_button(_("Display Hack Time"),                         devices.UFC, device_commands.Button_12, 394, nil, nil, false )
elements["PNT-BTN-UFC-FUNC"]        = default_button(_("Select Function Mode"),                     devices.UFC, device_commands.Button_13, 397, nil, nil, false )

 

So I tried adding the same "nil, nil, false" to the line 700,like this

Quote

elements["PNT-BTN-UFC-SPC"]            = default_button(_("Space"),                                     devices.UFC, device_commands.Button_11, 396, nil, nil, false  )

 And this problem is gone. No more double spaces insert after the editing. It works both for A-10C and A-10C II.

Edited by Akiazusa
  • Like 1
  • Thanks 3

Kyoto Animation forever!

  • 2 weeks later...
Posted
On 9/22/2023 at 11:02 PM, Akiazusa said:

elements["PNT-BTN-UFC-SPC"]            = default_button(_("Space"),                                     devices.UFC, device_commands.Button_11, 396, nil, nil, false  )

Can confirm this works for both C and C II. Thanks a lot for sharing 🙂

  • Like 2
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...