Limit keyboard control map to current scene
  • jimcortez
    junior Member
    Posts: 5
    Joined: Thu Feb 06, 2025 3:53 am

    Limit keyboard control map to current scene

    by jimcortez » Thu Feb 06, 2025 4:10 am

    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"?

Who is online

Users browsing this forum: No registered users and 27 guests