Calling simultaneous functions in draw()

Hello @bcabc,

Using this example:
https://discourse.processing.org/t/customizeable-keyboard-controls-for-games/22003/2

And adding this to draw() :

void draw() 
  {
  // Continue doing your thing
  background(0);
  String s = "";
  for(int i = 0; i<256; i++)
    {
    if (keys[i] == true) 
      {
      //print(char(i));   
      s += str(char(i));
      }
    }
    textSize(24);
    text(s, 20, 50);
    println(); 
    }
  }

I only get a maximum of 6 keys on my keyboard!
And less with numbers along the top but 6 with number keypad.

This may provide some insight:

:)

2 Likes