I would also be interested in a way to get the current position (triggered by an input being made high or low, or when an analog sense pin reaches a certain value). Maybe looking at the firmware code for how the endstops/homing works can help.
This was available in Marlin and was very useful for my printer. Hopefully get_position() can be incorporated into RRF.