How would I create this?

Hello everyone.

I really need help or ideas on something that probably is complicated to do. Or maybe it is easy, who knows? So what I actually need is some sort of circular sliding field Gui where the player has to move their mouse in circles. We probably know something similar (actually the exact same) from Bowsers Inside Story.

This actually:

image

The most complicated thing I see in this is actually telling if the mouse moves in the right direction and not the opposite one. Also maybe telling if the mouse has a certain distance from the middle of the Gui. For example: If you are too close to the middle, it won’t count. The same counts for having a grand distance from the middle. So it really should be in the area of the arrows. It would also be good to tell how many times the players mouse did spin.

Does anybody have some good knowledge about how to create this?

My guess would be making an imaginary circle, divided to equally sized chunks, and calculate how far the player’s mouse cursor is from the circle. If it’s in, it counts. Then, make a checkpoint like system, you can track the direction that way.