I am thinking about adding two buttons for draining and raining instead of using keyboard. Do I need to use a microcontroller like raspberry pi to detect the button press or I can do that by modifying the file in AR sandbox? Can you give me some ideas of coding please?
Oliver had a post on the old forum that uses an arcade USB encoder to send standard keyboard keys when the “arcade” buttons are pressed. He includes instructions for configuring the sandbox to use the buttons.
The Wayback Machine has his post for “USB Button Solution”, but I cannot include the URL.
Also, there are USB keyboards with one, two, five, etc. buttons. This way, the only sandbox setup is to assign tools (drain/rain) in the configuration file. I do not know how the output values are assigned to the keys, but I suspect it requires Windows for the initial setup.
Another example is Liudr’s AR Sandbox controller. He gives instructions for building flood and drain buttons using an Arduino microcontroller.