mirror of
https://github.com/dekuNukem/USB4VC.git
synced 2025-10-31 11:26:46 -07:00
added inhibit handling in xt keyboard
This commit is contained in:
@@ -479,15 +479,12 @@ void gamepad_update(void)
|
||||
void xtkb_update(void)
|
||||
{
|
||||
xtkb_check_for_softreset();
|
||||
|
||||
if(kb_buf_peek(&my_kb_buf, &buffered_code, &buffered_value) == 0)
|
||||
{
|
||||
if(xtkb_press_key(buffered_code, buffered_value) != 0)
|
||||
{
|
||||
xtkb_reset_bus();
|
||||
return;
|
||||
}
|
||||
kb_buf_pop(&my_kb_buf);
|
||||
if(xtkb_press_key(buffered_code, buffered_value) == XTKB_ERROR_HOST_INHIBIT)
|
||||
HAL_Delay(1);
|
||||
else
|
||||
kb_buf_pop(&my_kb_buf);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user