add ToMessage() for VmcExtKey
This commit is contained in:
parent
30a960ef0b
commit
fd3e1b5ae9
|
@ -18,6 +18,7 @@
|
|||
|
||||
using Godot;
|
||||
using godotOscSharp;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace godotVmcSharp
|
||||
{
|
||||
|
@ -64,5 +65,14 @@ namespace godotVmcSharp
|
|||
name = _name;
|
||||
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')
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user