OpenXbox / xbox-smartglass-csharp

🎮.NET Standard client library for the Xbox One SmartGlass protocol
MIT License
66 stars 20 forks source link

SendInputFrame #108

Closed dj88zd closed 3 years ago

dj88zd commented 3 years ago

Hello, I'd like to ask for help. Are there any samples sending SendInputFrame to the Xbox using an Xbox One controller? what is the DateTime createdTime ? I want the buttons to work in the game. I try to SmartGlass.Nano.Channels.InputChannel input = nano.Input; InputButtons btn = new InputButtons(); InputAnalogue analo = new InputAnalogue(); InputExtension extension = new InputExtension(); btn.SetValue(NanoGamepadButton.A, 1); input.SendInputFrame(DateTime.Now, btn, analo, extension); btn.SetValue(NanoGamepadButton.A, 0); input.SendInputFrame(DateTime.Now, btn, analo, extension); But he would click multiple times in a row or not respond. What can I do to make it normal work?

and How can I disconnect the remote play? nano.StopStreamAsync(); I tried to disconnect, but the connection continues I'd appreciate it if you could help me.