Exemplo n.º 1
0
        public async Task <bool> InitAsync()
        {
            keyboard = await DeviceManager.FindDeviceAsync();

            timer.Change(TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(30));
            return(keyboard != null);
        }
Exemplo n.º 2
0
        private async Task OnTimer()
        {
            if (keyboard == null)
            {
                keyboard = await DeviceManager.FindDeviceAsync();
            }

            await keyboard?.EnableFunctionKeysAsync();
        }