Keyboard Tester
in
Programming Questions
•
2 years ago
Greetings All,
I'm looking to put together a program to test keyboards prior to selling them off. I'm using the Tiper keyboard http://www.openprocessing.org/visuals/?visualID=9701. I'd like to black out each key as it's pressed. As well as adding the keys that this keyboard lacks.
Now for the question. I see the color change here:
Any help would be great.
I'm looking to put together a program to test keyboards prior to selling them off. I'm using the Tiper keyboard http://www.openprocessing.org/visuals/?visualID=9701. I'd like to black out each key as it's pressed. As well as adding the keys that this keyboard lacks.
Now for the question. I see the color change here:
- void mouseMoved(){
- for(int i = 0; i < mac.teclas.length; i++){
- if (mouseX > mac.teclas[i].x - mac.teclas[i].w/2 && mouseX < mac.teclas[i].x + mac.teclas[i].w/2 &&
- mouseY > mac.teclas[i].y - mac.teclas[i].h/2 && mouseY < mac.teclas[i].y + mac.teclas[i].h/2){
- mac.teclas[i].bg = color(0);
- } else mac.teclas[i].bg = color(255);
- }
- }
Any help would be great.
1