Beispiel #1
0
/* check if data is waiting */
static int
pckbd_check(keyboard_t *kbd)
{
	if (!KBD_IS_ACTIVE(kbd))
		return FALSE;
	return kbdc_data_ready(((pckbd_state_t *)kbd->kb_data)->kbdc);
}
Beispiel #2
0
/* check if char is waiting */
static int
pckbd_check_char(keyboard_t *kbd)
{
	pckbd_state_t *state;

	if (!KBD_IS_ACTIVE(kbd))
		return FALSE;
	state = (pckbd_state_t *)kbd->kb_data;
	if (!(state->ks_flags & COMPOSE) && (state->ks_composed_char > 0))
		return TRUE;
	return kbdc_data_ready(state->kbdc);
}
Beispiel #3
0
/* check if data is waiting */
static int
atkbd_check(keyboard_t *kbd)
{
	int ret;

	if (!KBD_IS_ACTIVE(kbd)) {
		return FALSE;
	}
	ret = kbdc_data_ready(((atkbd_state_t *)kbd->kb_data)->kbdc);

	return ret;
}
Beispiel #4
0
/* check if char is waiting */
static int
atkbd_check_char(keyboard_t *kbd)
{
	atkbd_state_t *state;
	int ret;

	if (!KBD_IS_ACTIVE(kbd)) {
		return FALSE;
	}
	state = (atkbd_state_t *)kbd->kb_data;
	if (!(state->ks_flags & COMPOSE) && (state->ks_composed_char > 0)) {
		return TRUE;
	}
	ret = kbdc_data_ready(state->kbdc);
	return ret;
}