Example #1
0
        protected virtual void OnStateChanged(HidStateEventArgs e)
        {
            var handler = StateChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
        protected void HidListener_StateChanged(object sender, HidStateEventArgs e)
        {
            HidState state = e.State;

            if (state.VendorId == _vendorId && state.ProductId == _productId)
            {
                _currentState = e.State;
            }
        }