This PR proposes a use to the "unused" int result seen in GuiSliderPro(). result will return 1 if the controlled value has been changed, 0 otherwise.
From what raysan told me in the raylib discord, the results were added in the redesign to return the control's internal states, but they weren't properly designed as those can vary between controls.
I might explore some possible use cases of these return values for other controls later.
This PR proposes a use to the "unused"
int result
seen inGuiSliderPro()
.result
will return 1 if the controlled value has been changed, 0 otherwise.From what raysan told me in the raylib discord, the results were added in the redesign to return the control's internal states, but they weren't properly designed as those can vary between controls.
I might explore some possible use cases of these return values for other controls later.