There is an immediate solution if you own a VKB Joy, with Device Config you can use the current X, Y and Z axis offset as a button trim and reset with the second button.
It is even possible to set a smooth reset transition, ie the absence of a sudden deviation of the flight direction.
Source: http://forum.vkb-sim.pro/viewtopic.php?f=25&t=3501