XnView MP turns off PS4 controller when active

Reported bugs that have been closed and/or resolved

Moderators: XnTriq, xnview, Dreamer

Post Reply
Elocai
Posts: 12
Joined: Tue Jan 24, 2017 6:19 pm

XnView MP turns off PS4 controller when active

Post by Elocai » Tue Jan 24, 2017 6:35 pm

XnViev MP turns off controller when active,
when using a PS4 controller (with inputmapper or ds4) to control the OS,
opening XnView MP (make as active window) couses controller to fail.
Button recognition, touchpanel etc. have no function.
when opening a diffrent programm (make xnview mp inactive) controller works again

User avatar
helmut
Posts: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: XnViev MP turns off PS4 controller when active

Post by helmut » Sat Jan 28, 2017 9:43 pm

Thank you for your problem report, Elocai. Most people (including me) are lacking of a PS4 controller, so it's hard to reproduce your problem.
I guess this has something to do with event handling: Windows events are passed to the program with the input focus, first. If the program doesn't handle the event, it's passed on to the OS.

Does the problem persist if you open a different program (e.g. Notepad) and input focus is on that program (i.e. XnView window is not the active window)?

Elocai
Posts: 12
Joined: Tue Jan 24, 2017 6:19 pm

Re: XnView MP turns off PS4 controller when active

Post by Elocai » Wed Feb 15, 2017 7:44 pm

I dont think you have to use an PS4 Controller, the behavior should be the same for PS3 and XBox controllers, maybe even normal pc controllers.

The problem persists only when XnView MP has the input focus.
XnView (without MP) had no problems with that, as no other programms as well.
When input focus is changen to an other programm or even just desktop, everything works fine again.

It´s a very strange problem, as i have no other software that behaves like that.
If a sowtware has build in support for controllers than it sometimes happens that action like push a button A where counted double as AA.
Or button function are overwritten.
But this is a totally diffrent story, when input focus goes to XnView MP, all controller functions are "dead" the buttons, touchpad etc. have no function at all.
When input focus goes to an other programm everything works fine.

The next strange thing is, that using the controller i can open and close programms, like using a normal mouse.
So i can change input focus with the controller itself etc. but when i go over the XnView MP window my left mouse button doesn´t seem to work.
The controller cant change input focus to xnview mp, and when i change it with normal mouse, then the controller is "dead" and has no function, till i change input focus to something diffrent.


I dont understand whats happening, seems like xnview mp would not just block or ignore events from the controller but turn it off.
Or blocking events globally, Or overwrite all events from the controller to none.


It´s hard to describe whats happening there. I use the controller as a tochpad, as a mouse, i have left and right click so everything is like a normal mouse.
When XnView MP is the Active Window with input focus. Than nothing works anymore, the mouse movement is not recognised, the buttons dont work etc.
Only normal mouse and keyboard behave normaly.

User avatar
helmut
Posts: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: XnView MP turns off PS4 controller when active

Post by helmut » Wed Feb 15, 2017 8:36 pm

Thank you for your long reply and explanation, elocai, which helps to understand the problem. As expected the problem only occurs when XnView has the input focus. FAIK, XnView MP supports swiping - perhaps this has to do with your problem. All in all it looks as if XnView MP or the underlaying Qt grab the events fired by your PS4 controller and don't pass the events on to the operating system (Windows).

Perhaps Pierre can explain better and even take some action to avoid this problem.

User avatar
xnview
Author of XnView
Posts: 31145
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView MP turns off PS4 controller when active

Post by xnview » Wed Feb 15, 2017 8:47 pm

Could you please try to (re)move all subfolders in plugins folder of XnViewMP (except windows)?
Pierre.

User avatar
helmut
Posts: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: XnView MP turns off PS4 controller when active

Post by helmut » Wed Feb 15, 2017 9:12 pm

xnview wrote:Could you please try to (re)move all subfolders in plugins folder of XnViewMP (except windows)?
There is no subfolder "..\plugins\windows". :?:

User avatar
xnview
Author of XnView
Posts: 31145
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: XnView MP turns off PS4 controller when active

Post by xnview » Wed Feb 15, 2017 9:27 pm

helmut wrote:
xnview wrote:Could you please try to (re)move all subfolders in plugins folder of XnViewMP (except windows)?
There is no subfolder "..\plugins\windows". :?:
sorry plugins\platforms
Pierre.

User avatar
helmut
Posts: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: XnView MP turns off PS4 controller when active

Post by helmut » Wed Mar 01, 2017 9:15 pm

Not reproducable and no feedback.

:arrow: Closed. (Please post here if the problem still occurs. Please provide more info, then).

Elocai
Posts: 12
Joined: Tue Jan 24, 2017 6:19 pm

Re: XnView MP turns off PS4 controller when active

Post by Elocai » Tue Jul 11, 2017 5:59 pm

- will be back in some weeks to investigate further and try your suggestions, atm i have exam and they take all of my free-time -

Post Reply