Original Post
Hi, I am making a tetris game in c++ and directx. The problem I am having is that when I read from the keyboard it moves my piece to fast. So I was thinking If the key on a keyboard is pressed and held down, call the function once every interval of time has elapsed. I am not to sure how to implement this though. Is this even a good idea? Should I put it in my main game file, so I can time it manually or should I put it in my input class and give each key I want an interval? Thanks for any suggestions you guys may have.