Home |
RTTarget-32 Programming Manual Function RTSetKeyboard Function RTSetCodepageTranslation Function RTInsertKeyboardScanCode System Management BIOS (SMBIOS) Advanced Programmable Interrupt Controller (APIC) |
Function RTSetKeyboardThis function can set a few keyboard options: void RTSetKeyboard(DWORD LockState, int RepeatDelay, int RepeatRate); ParametersLockStateCan be any combination of NUMLOCK_ON, SCROLLLOCK_ON, and CAPSLOCK_ON defined in windows.h. RepeatDelayMust be in the range 0 .. 3. It specifies the delay after which keyboard input is automatically repeated when a key is held down. At zero, the delay is set to 0.25 seconds; at 3, the delay is 1 second. RepeatRateMust be in the range 0 .. 31. It specifies the rate at which keys are generated when a key is held down. At zero, the rate is 30 characters per second; at 31, the rate is 2 characters per second. If this function is never called, RTSetKeyboard(NUMLOCK_ON, 0, 0) is assumed. The NUMLOCK state can also be changed with the RTTarget-32 flags (see section RTTarget-32 Flags).
|