src/test/input.c
static void receive_text_event(const InputEvent *event)
{
    ASSERT(event != NULL);
    ASSERT(event->type == INPUT_EVENT_TEXT);
    ASSERT(text_input_len < lenof(text_input));

    text_input[text_input_len].detail = event->detail;
    text_input[text_input_len].ch = event->text.ch;
    text_input_len++;

    if (num_events < lenof(events)) {
        events[num_events] = *event;
    }
    num_events++;
}
/**
 * receive_text_event:  Input event callback function which expects only
 * text input events and stores the characters or event codes in the
 * text_input array.  The last_event structure is also updated as for
 * receive_event().
 */
Input event callback function which expects only
text input events and stores the characters or event codes in the
text_input array.  The last_event structure is also updated as for
receive_event().
Input event callback function which expects only text input events and stores the characters or event codes in the text_input array . The last_event structure is also updated as for receive_event () .
static void receive_text_event(const InputEvent *event)
{
    ASSERT(event != NULL);
    ASSERT(event->type == INPUT_EVENT_TEXT);
    ASSERT(text_input_len < lenof(text_input));
    text_input[text_input_len].detail = event->detail;
    text_input[text_input_len].ch = event->text.ch;
    text_input_len++;
    if (num_events < lenof(events)) {
        events[num_events] = *event;
    }
    num_events++;
}
static void receive_text_event ( const InputEvent * event ) { ASSERT ( event != NULL ) ; ASSERT ( event -> type == INPUT_EVENT_TEXT ) ; ASSERT ( text_input_len < lenof ( text_input ) ) ; text_input [ text_input_len ] . detail = event -> detail ; text_input [ text_input_len ] . ch = event -> text . ch ; text_input_len ++ ; if ( num_events < lenof ( events ) ) { events [ num_events ] = * event ; } num_events ++ ; }
receive_text_event:  Input event callback function which expects only
 text input events and stores the characters or event codes in the
 text_input array.
receive_text_event : Input event callback function which expects only text input events and stores the characters or event codes in the text_input array .