mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 18:35:32 +00:00
29 lines
885 B
C++
29 lines
885 B
C++
/*
|
|
Copyright: © 2018 SIL International.
|
|
Description: This is a wrapper for the process_event API.
|
|
TODO: Add a mecahnism to trigger output of PERSIST_OPT &
|
|
RESET_OPT actions items, options support and context matching.
|
|
Create Date: 17 Oct 2018
|
|
Authors: Tim Eves (TSE)
|
|
History: 17 Oct 2018 - TSE - Initial implementation.
|
|
*/
|
|
|
|
#include <keyman/keyboardprocessor.h>
|
|
#include "processor.hpp"
|
|
#include "state.hpp"
|
|
|
|
km_kbp_status
|
|
km_kbp_process_event(km_kbp_state *state,
|
|
km_kbp_virtual_key vk, uint16_t modifier_state)
|
|
{
|
|
km::kbp::keyboard const & k = state->keyboard();
|
|
return const_cast<km::kbp::abstract_processor&>(k.processor()).process_event(state, vk, modifier_state);
|
|
}
|
|
|
|
|
|
km_kbp_attr const *
|
|
km_kbp_get_engine_attrs(km_kbp_state *state)
|
|
{
|
|
return state->keyboard().processor().get_attrs();
|
|
}
|
|
|