Generate random values for Joystick with proCONTROLL if the Joystick is not used
in
Contributed Library Questions
•
2 years ago
Hi
I want to create a light show where the listeners can influence the graphics using two joysticks. proCONTROLL of course is very helpful. However, there is of course the possibility that nobody wants to play with the joysticks, so my system should react to that and start generating random joystick output, otherwise the light show could become very boring soon
Has anyone ever done that?
My idea is to extend the ControllStick class and to override the getters for X, Y etc. An internal timer reacts to the real joystick events by resetting a watchdog timer and returning the real data. But as soon as the watchdog timer exceeds for instance 5 seconds, the random part of the "Joystick" starts. The individual parameters (X, Y etc.) can be configured to have a range of random values and a probability that it generates them.
Is this realistic?
Any help is greatly appreciated!
Best regards,
Eric
I want to create a light show where the listeners can influence the graphics using two joysticks. proCONTROLL of course is very helpful. However, there is of course the possibility that nobody wants to play with the joysticks, so my system should react to that and start generating random joystick output, otherwise the light show could become very boring soon
![](zoho-static/ze/images/smile.gif)
Has anyone ever done that?
My idea is to extend the ControllStick class and to override the getters for X, Y etc. An internal timer reacts to the real joystick events by resetting a watchdog timer and returning the real data. But as soon as the watchdog timer exceeds for instance 5 seconds, the random part of the "Joystick" starts. The individual parameters (X, Y etc.) can be configured to have a range of random values and a probability that it generates them.
Is this realistic?
Any help is greatly appreciated!
Best regards,
Eric
1