Midi #CC momentary to toggle

would it be possible to put in the edition of plugins when assigning a MIDI controller the “Momentary” or “Toggle” option, which will avoid doing hacks, in particular by adding MIDI plug-ins?
These options exist in, for example, Gig Performer, in order to compensate for the closed behavior of certain controllers; I am thinking in particular of the AKAI MIDIMIX where when editing you can only change the channel and the cc or note mode, but not to switch from “Momentary” to “Toggle” like the KORG nanoKontrol2.
Hoping I’m not in the wrong discussion.