add ToMessage() for VmcExtKey

This commit is contained in:
Cassandra de la Cruz-Munoz 2023-08-16 19:45:58 -04:00
parent 30a960ef0b
commit fd3e1b5ae9

View File

@ -18,6 +18,7 @@
using Godot; using Godot;
using godotOscSharp; using godotOscSharp;
using System.Collections.Generic;
namespace godotVmcSharp namespace godotVmcSharp
{ {
@ -64,5 +65,14 @@ namespace godotVmcSharp
name = _name; name = _name;
keycode = _keycode; keycode = _keycode;
} }
public godotOscSharp.OscMessage ToMessage()
{
return new godotOscSharp.OscMessage(addr, new List<godotOscSharp.OscArgument>{
new godotOscSharp.OscArgument(active, 'i'),
new godotOscSharp.OscArgument(name, 's'),
new godotOscSharp.OscArgument(keycode, 'i')
});
}
} }
} }