From dee550b28d5576740d8eb601c458c4e0873194ef Mon Sep 17 00:00:00 2001 From: Apache <93100547+Apachedrag427@users.noreply.github.com> Date: Sat, 18 Feb 2023 13:15:57 -0600 Subject: [PATCH] Remove paste event (#6) Paste event is superseded by `machine.getClipboard` --- Capy64/Runtime/EventEmitter.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Capy64/Runtime/EventEmitter.cs b/Capy64/Runtime/EventEmitter.cs index c171a72..83ca4ca 100644 --- a/Capy64/Runtime/EventEmitter.cs +++ b/Capy64/Runtime/EventEmitter.cs @@ -180,19 +180,6 @@ internal class EventEmitter if (e.Key == Keys.C) _runtime.QueueEvent("interrupt", LK => 0); } - else if (e.Key == Keys.V) - { - if (SDL.HasClipboardText()) - { - var text = SDL.GetClipboardText(); - _runtime.QueueEvent("paste", LK => - { - LK.PushString(text); - - return 1; - }); - } - } } }