From afdfbe0ef6c4d1344e84b064e0d8eb479b9ed834 Mon Sep 17 00:00:00 2001 From: Cassandra de la Cruz-Munoz Date: Thu, 17 Aug 2023 10:14:38 -0400 Subject: [PATCH] add ToMessage() to VmcExtSetShortcut --- VmcMessages/VmcExtSetShortcut.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VmcMessages/VmcExtSetShortcut.cs b/VmcMessages/VmcExtSetShortcut.cs index 86cbd6e..3dceb86 100644 --- a/VmcMessages/VmcExtSetShortcut.cs +++ b/VmcMessages/VmcExtSetShortcut.cs @@ -18,6 +18,7 @@ using Godot; using godotOscSharp; +using System.Collections.Generic; namespace godotVmcSharp { @@ -44,5 +45,10 @@ namespace godotVmcSharp { shortcut = _shortcut; } + + public godotOscSharp.OscMessage ToMessage() + { + return new godotOscSharp.OscMessage(addr, new List{new godotOscSharp.OscArgument(shortcut, 's')}); + } } } \ No newline at end of file