implement keystroke macro support
This commit is contained in:
parent
7c54d9fb1e
commit
88f7b825a8
|
@ -198,6 +198,21 @@ class HogDevice():
|
|||
logger.info("Release Scene " + str(i))
|
||||
self.osc.send_message(ctx.device, "/hog/playback/release/1", i)
|
||||
|
||||
def _macro_go(self, ctx):
|
||||
i = ctx.number.value
|
||||
logger.info("Go on Macro " + str(i))
|
||||
self.osc.send_message(ctx.device, "/hog/playback/go/2", i)
|
||||
|
||||
def _macro_halt(self, ctx):
|
||||
i = ctx.number.value
|
||||
logger.info("Pause Macro " + str(i))
|
||||
self.osc.send_message(ctx.device, "/hog/playback/halt/2", i)
|
||||
|
||||
def _macro_release(self, ctx):
|
||||
i = ctx.number.value
|
||||
logger.info("Stop Macro " + str(i))
|
||||
self.osc.send_message(ctx.device, "/hog/playback/release/2", i)
|
||||
|
||||
command = {"GM": _master_go,
|
||||
"HM": _master_halt,
|
||||
"AM": _master_assert,
|
||||
|
@ -211,5 +226,8 @@ class HogDevice():
|
|||
"RL": _list_release,
|
||||
"GS": _scene_go,
|
||||
"HS": _scene_halt,
|
||||
"RS": _scene_release
|
||||
"RS": _scene_release,
|
||||
"GK": _macro_go,
|
||||
"HK": _macro_halt,
|
||||
"RK": _macro_release
|
||||
}
|
||||
|
|
|
@ -92,9 +92,9 @@ Only features that are supported in both OSC and Comment Macros are able to be i
|
|||
| MS | Midi String | no | possible? |
|
||||
| MN | Midi Note | no | |
|
||||
| RN | Reset Node | no | |
|
||||
| GK | Go Keystroke Macro | no | |
|
||||
| HK | Pause Keystroke Macro | no | |
|
||||
| RK | Stop Keystroke Macro | no | . |
|
||||
| GK | Go Keystroke Macro | Yes | |
|
||||
| HK | Pause Keystroke Macro | Yes | |
|
||||
| RK | Stop Keystroke Macro | Yes | . |
|
||||
|
||||
|
||||
## Future Work
|
||||
|
|
Loading…
Reference in New Issue