mirror of
https://github.com/jwetzell/qController.git
synced 2026-08-24 00:19:27 +00:00
Initial check-in of module qController
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using Xamarin.Forms;
|
||||
namespace qController
|
||||
{
|
||||
public class QUpdater
|
||||
{
|
||||
private bool active = true;
|
||||
private QController qController;
|
||||
public QUpdater(QController controller)
|
||||
{
|
||||
qController = controller;
|
||||
}
|
||||
|
||||
public void Start(){
|
||||
active = true;
|
||||
Device.StartTimer(TimeSpan.FromSeconds(0.01), () => {
|
||||
qController.sendCommand("/selectedCues");
|
||||
qController.sendCommand("/cue/selected/levels");
|
||||
return active;
|
||||
});
|
||||
}
|
||||
|
||||
public void Kill(){
|
||||
active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user