| 2885 | } |
| 2886 | |
| 2887 | static 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 | |
| 2901 | static command_result GetPauseState(color_ostream &stream, const EmptyMessage *in, SingleBool *out) |
| 2902 | { |