예제 #1
0
 public OptimusMiniKeyState(OptimusMiniController owner, byte keyIndex)
 {
     _Owner = owner;
       _KeyIndex = keyIndex;
       _LastKeyDownOn = 0;
       _LastKeyUpOn = 0;
       _DownOn = 0;
 }
예제 #2
0
 public PluginManager(OptimusMiniController controller)
 {
     _Controller      = controller;
     _Layouts         = new List <PluginLayout>();
     _DefaultLayout   = new PluginLayout();
     _PluginInstances = new List <PluginInstance>();
     _Browser         = new OptimusMiniPluginBrowser();
     _LastRotate      = Environment.TickCount;
 }
예제 #3
0
        public Form1()
        {
            InitializeComponent();

              _Device = new OptimusMiniController();
              _Plugins = new OptimusMiniPluginBrowser();
              _Settings = new OptimusMiniSettings();
              _Device.SetPluginManager(new Toolz.OptimusMini.Plugins.PluginManager(_Device));

              _ConnectionStateChanged = new ConnectionStateChangedDelegate(ConnectionStateChangedMethod);
              _Device.OnConnectionStateChanged += ConnectionStateChangedEventHandler;

              _KeyDown = new KeyEventDelegate(KeyDownMethod);
              _Device.OnKeyDown += KeyDownEventHandler;

              _KeyUp = new KeyEventDelegate(KeyUpMethod);
              _Device.OnKeyUp += KeyUpEventHandler;

              _KeyHold = new KeyEventDelegate(KeyHoldMethod);
              _Device.OnKeyHold += KeyHoldEventHandler;

              _KeyRelease = new KeyEventDelegate(KeyReleaseMethod);
              _Device.OnKeyRelease += KeyReleaseEventHandler;

              _KeyPress = new KeyEventDelegate(KeyPressMethod);
              _Device.OnKeyPress += KeyPressEventHandler;

              _KeyDoublePress = new KeyEventDelegate(KeyDoublePressMethod);
              _Device.OnKeyDoublePress += KeyDoublePressEventHandler;

              selectPlugin0.Items.Add("");
              selectPlugin1.Items.Add("");
              selectPlugin2.Items.Add("");

              for (int i = 0; i < _Plugins.Count; i++)
              {
            selectPlugin0.Items.Add(_Plugins[i].Name);
            selectPlugin1.Items.Add(_Plugins[i].Name);
            selectPlugin2.Items.Add(_Plugins[i].Name);
            selectPluginToAdd.Items.Add(_Plugins[i].Name);
              }

              LoadSettings();

              new Forms.Main().Show();
        }
예제 #4
0
        public Form1()
        {
            InitializeComponent();

            _Device   = new OptimusMiniController();
            _Plugins  = new OptimusMiniPluginBrowser();
            _Settings = new OptimusMiniSettings();
            _Device.SetPluginManager(new Toolz.OptimusMini.Plugins.PluginManager(_Device));

            _ConnectionStateChanged           = new ConnectionStateChangedDelegate(ConnectionStateChangedMethod);
            _Device.OnConnectionStateChanged += ConnectionStateChangedEventHandler;

            _KeyDown           = new KeyEventDelegate(KeyDownMethod);
            _Device.OnKeyDown += KeyDownEventHandler;

            _KeyUp           = new KeyEventDelegate(KeyUpMethod);
            _Device.OnKeyUp += KeyUpEventHandler;

            _KeyHold           = new KeyEventDelegate(KeyHoldMethod);
            _Device.OnKeyHold += KeyHoldEventHandler;

            _KeyRelease           = new KeyEventDelegate(KeyReleaseMethod);
            _Device.OnKeyRelease += KeyReleaseEventHandler;

            _KeyPress           = new KeyEventDelegate(KeyPressMethod);
            _Device.OnKeyPress += KeyPressEventHandler;

            _KeyDoublePress           = new KeyEventDelegate(KeyDoublePressMethod);
            _Device.OnKeyDoublePress += KeyDoublePressEventHandler;

            selectPlugin0.Items.Add("");
            selectPlugin1.Items.Add("");
            selectPlugin2.Items.Add("");

            for (int i = 0; i < _Plugins.Count; i++)
            {
                selectPlugin0.Items.Add(_Plugins[i].Name);
                selectPlugin1.Items.Add(_Plugins[i].Name);
                selectPlugin2.Items.Add(_Plugins[i].Name);
                selectPluginToAdd.Items.Add(_Plugins[i].Name);
            }

            LoadSettings();

            new Forms.Main().Show();
        }
예제 #5
0
 private void KeyUpEventHandler(OptimusMiniController sender, byte index)
 {
     this.Invoke(_KeyUp, index);
 }
예제 #6
0
 private void KeyDoublePressEventHandler(OptimusMiniController sender, byte index)
 {
     this.Invoke(_KeyDoublePress, index);
 }
예제 #7
0
 private void ConnectionStateChangedEventHandler(OptimusMiniController sender, bool connected)
 {
     this.Invoke(_ConnectionStateChanged, connected);
 }
 public PluginManager(OptimusMiniController controller)
 {
     _Controller = controller;
       _Layouts = new List<PluginLayout>();
       _DefaultLayout = new PluginLayout();
       _PluginInstances = new List<PluginInstance>();
       _Browser = new OptimusMiniPluginBrowser();
       _LastRotate = Environment.TickCount;
 }
예제 #9
0
 private void KeyDoublePressEventHandler(OptimusMiniController sender, byte index)
 {
     this.Invoke(_KeyDoublePress, index);
 }
예제 #10
0
 private void KeyReleaseEventHandler(OptimusMiniController sender, byte index)
 {
     this.Invoke(_KeyRelease, index);
 }
예제 #11
0
 private void ConnectionStateChangedEventHandler(OptimusMiniController sender, bool connected)
 {
     this.Invoke(_ConnectionStateChanged, connected);
 }
예제 #12
0
 void OnConnectionStateChanged(OptimusMiniController sender, bool connected)
 {
     UpdateActions();
 }
예제 #13
0
 void OnConnectionStateChanged(OptimusMiniController sender, bool connected)
 {
     UpdateActions();
 }
예제 #14
0
 static void _Device_OnNotification(OptimusMiniController sender, OptimusMiniEventLog notification)
 {
     ShowErrorNotification(notification.Summary);
 }
예제 #15
0
 static void _Device_OnNotification(OptimusMiniController sender, OptimusMiniEventLog notification)
 {
     ShowErrorNotification(notification.Summary);
 }