Old 360 controller bug, still not fixed
#1
When you are zoomed in a picture, you can't pan down or right with a 360 controller. You can only pan up and left. Even if i push down on the analog stick, it still pans upwards.

This problem exists for many versions now ever since version 14 iirc.
Reply
#2
Issue still present in all versions of Kodi i tried:

Version 17.4 stable
Version 17 nightly (latest)
Version 18 nightly (latest)

Can someone please confirm this?

Picture viewer is unusable with a 360 controller with this bug. Since i don't think this will get fixed any time soon (been there since version 14) is there maybe a way to fix it manually? Like changing a line or two in a .xml file? Has anyone tried it?
Reply
#3
I found this in the "Joystick.xml" file under "slideshow"
<leftstickleft>AnalogMoveX</leftstickleft>
<leftstickright>AnalogMoveX</leftstickright>
<leftstickup>AnalogMoveY</leftstickup>
<leftstickdown>AnalogMoveY</leftstickdown>

Maybe there is an error here? Seems like left+right and up+down share the same command.


Edit: Here is the Slideshow part in the new joystick.xml that has the problem:

<SlideShow>
<joystick>
<a>Pause</a>
<b>Stop</b>
<y>ZoomNormal</y>
<leftbumper>Rotate</leftbumper>
<rightbumper>Info</rightbumper>
<up>ZoomIn</up>
<down>ZoomOut</down>
<left>PreviousPicture</left>
<right>NextPicture</right>
<leftstickleft>AnalogMoveX</leftstickleft>
<leftstickright>AnalogMoveX</leftstickright>
<leftstickup>AnalogMoveYup</leftstickup>
<leftstickdown>AnalogMoveYdown</leftstickdown>
<lefttrigger>ZoomOut</lefttrigger>
<righttrigger>ZoomIn</righttrigger>
</joystick>
</SlideShow>


And here is the old xbox 360 controller xml from version 16 that works fine:

<SlideShow>
<joystick family="Xbox 360 Controller (Windows)">
<button id="1">Pause</button>
<button id="2">Stop</button>
<button id="4">ZoomNormal</button>
<button id="5">Rotate</button>
<button id="6">CodecInfo</button>
<button id="11">ZoomIn</button>
<button id="12">ZoomOut</button>
<button id="13">PreviousPicture</button>
<button id="14">NextPicture</button>
<axis id="1">AnalogMoveX</axis>
<axis id="2">AnalogMoveY</axis>
<axis id="3" limit="+1">ZoomOut</axis>
<axis id="3" limit="-1">ZoomIn</axis>
<hat id="1" position="up">ZoomIn</hat>
<hat id="1" position="down">ZoomOut</hat>
<hat id="1" position="left">PreviousPicture</hat>
<hat id="1" position="right">NextPicture</hat>
</joystick>

I just can't use the old one in some way to work with the new one. Can someone help with this?
Reply
#4
Did you map your controller in the configuration utility first?
http://kodi.wiki/view/HOW-TO:Modify_joystick.xml
The Xbox 360 is a Gamepad not a Joystick or am i wrong so you should be looking at the gamepad.xml looks like what you where after.
<SlideShow>
<gamepad>
<A>Pause</A>
<B>Stop</B>
<Y>Rotate</Y>
<X>ZoomNormal</X>
<black>Info</black>
<white>Info</white>
<righttrigger>NextPicture</righttrigger>
<lefttrigger>PreviousPicture</lefttrigger>
<dpadleft>PreviousPicture</dpadleft>
<dpadright>NextPicture</dpadright>
<dpadup>ZoomIn</dpadup>
<dpaddown>ZoomOut</dpaddown>
<leftthumbstick>AnalogMove</leftthumbstick>
<back>Stop</back>
</gamepad>
</SlideShow>
English is not my native language; please excuse typing errors.
Grampa Simpson: Unfortunately, like all true stories, this one has a crappy ending. You have a story with an ending.
Grampa, are you sure you're okay to drive at night? Grampa: It's night?
Banned add-ons
Reply
#5
(2017-09-12, 04:47)kimkl Wrote: Did you map your controller in the configuration utility first?
http://kodi.wiki/view/HOW-TO:Modify_joystick.xml
The Xbox 360 is a Gamepad not a Joystick or am i wrong so you should be looking at the gamepad.xml looks like what you where after.
<SlideShow>
<gamepad>
<A>Pause</A>
<B>Stop</B>
<Y>Rotate</Y>
<X>ZoomNormal</X>
<black>Info</black>
<white>Info</white>
<righttrigger>NextPicture</righttrigger>
<lefttrigger>PreviousPicture</lefttrigger>
<dpadleft>PreviousPicture</dpadleft>
<dpadright>NextPicture</dpadright>
<dpadup>ZoomIn</dpadup>
<dpaddown>ZoomOut</dpaddown>
<leftthumbstick>AnalogMove</leftthumbstick>
<back>Stop</back>
</gamepad>
</SlideShow>
I tried all that.

XBOX 360 controller is affected by the joystick.xml. I also tried configuring it through the utility but it doesn't change anything. I also copied these lines from "gamepad" to "joystick" but again, no fix. The best thing i could do was to manually change "analogMoveX" and "Y" to "up", "down", "left" and "right" but that makes the analog stick work like the keyboard buttons (no smooth, analog movement).
Reply
#6
(2017-08-12, 00:15)Imgema Wrote: When you are zoomed in a picture, you can't pan down or right with a 360 controller. You can only pan up and left. Even if i push down on the analog stick, it still pans upwards.

This problem exists for many versions now ever since version 14 iirc.

Well it will only let me pan down and right. i used the dpad for UP DOWN RIGHT LEFT but it def to left-stick in Pictures
Strange?
English is not my native language; please excuse typing errors.
Grampa Simpson: Unfortunately, like all true stories, this one has a crappy ending. You have a story with an ending.
Grampa, are you sure you're okay to drive at night? Grampa: It's night?
Banned add-ons
Reply
#7
(2017-09-12, 21:51)kimkl Wrote:
(2017-08-12, 00:15)Imgema Wrote: When you are zoomed in a picture, you can't pan down or right with a 360 controller. You can only pan up and left. Even if i push down on the analog stick, it still pans upwards.

This problem exists for many versions now ever since version 14 iirc.

Well it will only let me pan down and right. i used the dpad for UP DOWN RIGHT LEFT but it def to left-stick in Pictures
Strange?
Maybe i got it backwards, yeah.

Point is that it only allows you to pan in one direction for each axis on the analog. That's the problem basically.
Reply
#8
Debug.log
https://paste.ubuntu.com/25524327/
English is not my native language; please excuse typing errors.
Grampa Simpson: Unfortunately, like all true stories, this one has a crappy ending. You have a story with an ending.
Grampa, are you sure you're okay to drive at night? Grampa: It's night?
Banned add-ons
Reply

Logout Mark Read Team Forum Stats Members Help
Old 360 controller bug, still not fixed0