Quantcast
Channel: garageCube
Viewing all articles
Browse latest Browse all 556

madMapper Support • Limit keyboard control map to current scene

$
0
0
Working on an art installation that uses capacitive touch to manipulate animations over a matrix of LEDs. I have capacitive touch boards (adafruit MPR121) connected to a microcontroller (adafruit RP2040 QTpy). Using circuit python, I am able to use the HID module to make the board emit keyboard presses. I can then map these keyboard presses to inputs into ISF shaders to change the variables.

Each scene has a different ISF shader. Each ISF shader has a variety of inputs I would like to control with keyboard controls. My keyboard controls are not aware of the current scene. How can I add controls so that when "scene A" is active, the "1" key manipulates a variable "speed" on shader "foo", but when I am in "scene B", the "1" key manipulates a variable "amplitude" on shader "bar"?

Statistics: Posted by jimcortez — Thu Feb 06, 2025 4:10 am



Viewing all articles
Browse latest Browse all 556

Trending Articles