add ToMessage() to VmcExtSetShortcut

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-17 10:14:38 -04:00
parent df32d6ab1f
commit afdfbe0ef6

View File

@ -18,6 +18,7 @@
using Godot; using Godot;
using godotOscSharp; using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp namespace godotVmcSharp
{ {
@ -44,5 +45,10 @@ namespace godotVmcSharp
{ {
shortcut = _shortcut; shortcut = _shortcut;
} }
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{new godotOscSharp.OscArgument(shortcut, 's')});
}
} }
} }