KBDGetRepeat

Syntax

#include <cafe/kbd.h>

KBDEc KBDGetRepeat(KBDChannel ch, u16 *delay, u16 *interval);

Parameters

ch Keyboard channel to query.
delay Pointer to a u16 value for storing the current repeat delay value.
interval Pointer to a u16 value for storing the current repeat rate interval value.

Return Values

KBDEc Keyboard error code.
KBD_SUCCESS if the call was successful.
KBD_ERR_NOT_INITIALIZED if the library was not initialized.
KBD_ERR_BAD_VALUE if ch was out of range.

Description

Returns current repeat rate values of the USB keyboard on channel ch. The current repeat delay value (in milliseconds) is written to the area pointed to by delay. The current repeat rate interval value (in milliseconds) is written to the area pointed to by interval. A repeat delay of 0 indicates that repeat is disabled.

Do Not Call From

Background Do not call this function from the background.

Revision History

2013/05/08 Automated cleanup pass.
2013/01/13 Removed KBD_ERR_BAD_POINTER.
2011/12/21 Moved to Cafe.
2007/03/27 Initial version.


CONFIDENTIAL