Home > Software engineering >  Delays in the win32 keyboard events
Delays in the win32 keyboard events

Time:11-01

Program with WM_KEYDOWN keyboard press event monitoring, to realize buttons hold not to put, the effect of but will respond immediately when press the button once, will not happen to have certain delay time after continuous response, how to remove the delay, immediately realize buttons hold the effect?

CodePudding user response:

It's humanized design, otherwise I type ddddddddaaaaaaaaazzzzziii accidentally

CodePudding user response:

"But at the time of button press will respond immediately once, will not happen to have certain delay time after continuous response, how to remove the delay,"
by design

CodePudding user response:

reference 1st floor dustpg response:
this is humanized design, otherwise my typing is not careful, it ddddddddaaaaaaaaazzzzziii

But now I do little game don't want this setting, should how?

CodePudding user response:

Active reading data or the low-level input interface, move the brain , because press event, although many, but only an up event,
So as long as received press the data that has been pressed, know received a pop-up message,

CodePudding user response:

reference 4 floor dustpg response:
using low-level input interface, active reading data or under dynamic brain , because press event, although many, but only an up event,
So as long as received press the data that has been pressed, know received a pop-up message,
thank you very much

CodePudding user response:

GetAsyncKeyState can detect button state
  • Related