xaml - How Can I Disable Pointer Mode For Xbox One (C#, UWP) -


i wondering how disable pointer mode on uwp application. have xyfocuskeyboardnavigation set , works when plug xbox 1 controller pc. whenever debug console have pointer instead of typical xbox controls. have tried disable adding following commands nothing worked, please help:

requirespointer="never" //at page level  this.requirespointer = requirespointer.never; //on load  requirespointermode = "whenrequested" //in app.xaml  this.requirespointermode = windows.ui.xaml.applicationrequirespointermode.whenrequested; //tried on load requirespointermode not exist  application.current.requirespointermode = applicationrequirespointermode.whenrequested; //tried on load got error: system.notsupportedexception: 'specified method not supported.' 

whenever debug console have pointer instead of typical xbox controls. have tried disable adding following commands nothing worked, please help: this.requirespointermode = windows.ui.xaml.applicationrequirespointermode.whenrequested; //tried on load requirespointermode not exist

to turn off mouse mode, add following constructor app

app.xaml.cs

public app() {     this.initializecomponent();     this.requirespointermode = windows.ui.xaml.applicationrequirespointermode.whenrequested;     this.suspending += onsuspending; } 

note:

if writing c++/directx app, there's nothing do. mouse mode applies html , xaml applications.

for more details refer how disable mouse mode.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -