| 1052 | } |
| 1053 | |
| 1054 | void InputManager::process_image_paste(std::string_view pasteData, const std::optional<Vector2f>& pastePos) { |
| 1055 | CustomEvents::emit_event<CustomEvents::PasteEvent>({ |
| 1056 | .type = CustomEvents::PasteEvent::DataType::IMAGE, |
| 1057 | .data = std::string(pasteData), |
| 1058 | .mousePos = pastePos |
| 1059 | }); |
| 1060 | } |
| 1061 | |
| 1062 | bool InputManager::ctrl_or_meta_held() { |
| 1063 | return key(KEY_GENERIC_LCTRL).held || key(KEY_GENERIC_LMETA).held; |