> home > Custom Layer Boundary API

set_current_input

January 19th 2020
Modify the memory of the event that was most recently sent to the calling view context memory

Signature

C++
void
set_current_input(Application_Links* app,
                  User_Input* input);

Parameters

app

the standard custom layer context pointer

input

a pointer to the input struct to copy over the existing input struct in the core

Details

This call only has the effect of altering the result of future calls to get_current_input until the next time input is sent to the calling view context thread. There is no effect when called from threads that are not view contexts.