Extract clench from orgasm_control_updateArousal and make it a simple function returning clench time and publishing EVT_ORGASM_START event at orgasm threshold
Take it if you think it's going in the direction you want. I know very well the clench detector and wanted to help in separating it from you updateArousal function.
It's simplified and now generates an orgasm event in your new event handler no matter what mode it's running in. Even in Manual.
Extract clench from orgasm_control_updateArousal and make it a simple function returning clench time and publishing EVT_ORGASM_START event at orgasm threshold
Take it if you think it's going in the direction you want. I know very well the clench detector and wanted to help in separating it from you updateArousal function.
It's simplified and now generates an orgasm event in your new event handler no matter what mode it's running in. Even in Manual.