Advertisement

Console input speed

Started by July 11, 2001 06:33 AM
1 comment, last by FatalXC 23 years, 7 months ago
OK, hey guys. I have just coded my first console It''s got cool scrolling blended cloud/space type things in the background, and holds the recent list of items added to it and displays it etc... Then I came to actually being able to type in the console, I got this working pretty easily, but it was way too fast. So I hooked it up to the timing class so it would only check for input every 75ms. But that made it laggy in some places, and since I''m using immediate data from direct input, it misses some keystrokes completely. I am about to try using the WM_KEY* messages that are sent to my window, as they should be timed better, I think. But how do you guys do this? Should I be using buffered input data or what? I''ll let you know how I get on!! Thanks for any suggestions, FatalXC
For the console input, using the WM_KEY* messages that windows sends is a good idea. Those messages will get sent based on the sensitivity settings that you can set for your keyboard. This way, the speed of the text should match that of a word processor on the same system, and should be roughly what the user would expect to happen.

J.W.
Advertisement
Yeah I did that and it all works real nicely

Cheers,

FatalXC

This topic is closed to new replies.

Advertisement