Exemplo n.º 1
0
        void Start() //Start Logitech ARX INIT
        {
            contextCallback.arxCallBack = new LogitechArx.logiArxCB(this.callback);
            contextCallback.arxContext  = System.IntPtr.Zero;
            bool retVal = LogitechArx.LogiArxInit("de.so.TwitchControl", "TwitchControl", ref contextCallback);

            if (!retVal)
            {
                int retCode = LogitechArx.LogiArxGetLastError();
                Debug.Fail("SDK can't be initalized! Error: " + retCode);
            }
        }
Exemplo n.º 2
0
        static void Start()
        {
            LogitechArx.logiArxCbContext contextCallback;
            contextCallback.arxCallBack = arxCallback;
            contextCallback.arxContext  = System.IntPtr.Zero;
            bool retVal = LogitechArx.LogiArxInit("arx.hardware.monitor", "ArxHWM", ref
                                                  contextCallback);

            if (!retVal)
            {
                int retCode = LogitechArx.LogiArxGetLastError();
                Console.WriteLine("loading sdk failed: " + retCode);
            }
        }