Is Java well-suited for this?
Posted on 2004-09-09
Hi. I am looking to write a program that displays a small square in the middle of a black screen. Every 10 ms, a new calculation is made based on the current position/speed/acceleration of the cursor and some random numbers. Also (and this is the part I am concerned about) is that keyboard input needs to be taken into consideration. A simple key was pressed event is not sufficient, as I need to know every 10ms whether zero, one or both of the designated keys are depressed during that interval. The question is can this be done in Java (both the 10ms period for input and calculation as well as keyboard scanning in this way)?
Thanks a lot for any help you can give (I realise that this would be dependent on the speed of the computer of course).