MCPcopy Create free account
hub / github.com/DFHack/dfhack / PassKeyboardEvent

Function PassKeyboardEvent

plugins/remotefortressreader/remotefortressreader.cpp:2887–2899  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2885}
2886
2887static command_result PassKeyboardEvent(color_ostream &stream, const KeyboardEvent *in)
2888{
2889#if DF_VERSION_INT > 34011
2890 SDL_Event e;
2891 e.key.type = in->type();
2892 e.key.state = in->state();
2893 e.key.keysym.mod = in->mod();
2894 e.key.keysym.scancode = (SDL_Scancode)in->scancode();
2895 e.key.keysym.sym = in->sym();
2896 DFHack::DFSDL::DFSDL_PushEvent(&e);
2897#endif
2898 return CR_OK;
2899}
2900
2901static command_result GetPauseState(color_ostream &stream, const EmptyMessage *in, SingleBool *out)
2902{

Callers

nothing calls this directly

Calls 1

typeMethod · 0.45

Tested by

no test coverage detected