Hello, I have a question regarding object oriented programming and the need for functions to be processed simultaneously
I will paste the current code I'm working later, but I a couple issues I'm running into that I need some help with. My code is basically changing the color of rectangles in the position of WASD keys when the individual keys are pressed. But, for some reason the 'A' key corresponds to changing the color of another keys rectangle and I cannot figure out why because the coordinates for the rectangles is in the function with its corresponding key. Also, If two keys are pressed at the same time it will only recognize that the most recently pressed key is currently pressed, and I am convinced that this is not a hardware ghosting issue of my keyboard but I could be wrong. So here is my code i am sure after looking/implementing the code someone can quickly tell me what I am doing wrong. Any advice regarding these problems or regarding other issues would be greatly appreciated.