MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / process_image_paste

Method process_image_paste

src/InputManager.cpp:1054–1060  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1052}
1053
1054void 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
1062bool InputManager::ctrl_or_meta_held() {
1063 return key(KEY_GENERIC_LCTRL).held || key(KEY_GENERIC_LMETA).held;

Callers 1

call_pasteMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected