mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-12-21 15:29:21 +00:00
Fix typecast for key repeat timer, and some header fixes.
This commit is contained in:
parent
ed761974e6
commit
04321da29c
@ -41,12 +41,12 @@ static key_timer_t key_repeat_timer;
|
|||||||
//
|
//
|
||||||
// SIDE EFFECTS: see DESCRIPTION
|
// SIDE EFFECTS: see DESCRIPTION
|
||||||
//
|
//
|
||||||
// COMPLEXITY: 1
|
// COMPLEXITY:
|
||||||
//
|
//
|
||||||
void asdf_repeat_init(void)
|
void asdf_repeat_init(void)
|
||||||
{
|
{
|
||||||
repeat_state = base_repeat_state = ASDF_DEFAULT_REPEAT_STATE;
|
repeat_state = base_repeat_state = ASDF_DEFAULT_REPEAT_STATE;
|
||||||
key_repeat_timer = (uint16_t) repeat_state;
|
key_repeat_timer = (key_repeat_timer) repeat_state;
|
||||||
}
|
}
|
||||||
|
|
||||||
// PROCEDURE: asdf_repeast_reset_count
|
// PROCEDURE: asdf_repeast_reset_count
|
||||||
@ -58,6 +58,8 @@ void asdf_repeat_init(void)
|
|||||||
//
|
//
|
||||||
// SIDE EFFECTS: see DESCRIPTION
|
// SIDE EFFECTS: see DESCRIPTION
|
||||||
//
|
//
|
||||||
|
// SCOPE: Public
|
||||||
|
//
|
||||||
// COMPLEXITY: 1
|
// COMPLEXITY: 1
|
||||||
//
|
//
|
||||||
void asdf_repeat_reset_count(void)
|
void asdf_repeat_reset_count(void)
|
||||||
@ -144,6 +146,8 @@ void asdf_repeat_activate(void)
|
|||||||
// down after REPEAT is released, and autorepeat mode is enabled, then restart
|
// down after REPEAT is released, and autorepeat mode is enabled, then restart
|
||||||
// the autorepeat timer. Otherwise disable repeat.
|
// the autorepeat timer. Otherwise disable repeat.
|
||||||
//
|
//
|
||||||
|
// SCOPE: Public
|
||||||
|
//
|
||||||
// COMPLEXITY: 1
|
// COMPLEXITY: 1
|
||||||
//
|
//
|
||||||
void asdf_repeat_deactivate(void)
|
void asdf_repeat_deactivate(void)
|
||||||
@ -163,6 +167,8 @@ void asdf_repeat_deactivate(void)
|
|||||||
//
|
//
|
||||||
// NOTES: The key_repeat_timer is only decremented if it is nonzero.
|
// NOTES: The key_repeat_timer is only decremented if it is nonzero.
|
||||||
//
|
//
|
||||||
|
// SCOPE: Public
|
||||||
|
//
|
||||||
// COMPLEXITY: 2
|
// COMPLEXITY: 2
|
||||||
//
|
//
|
||||||
uint8_t asdf_repeat(void)
|
uint8_t asdf_repeat(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user