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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -