Bug#764748: kobodeluxe: Joystick is impossible to use in menus
Eric Duhamel
ericxdu23 at gmail.com
Fri Oct 10 18:56:36 UTC 2014
Package: kobodeluxe
Version: 0.5.1-6
Severity: important
Dear Maintainer,
I started kobodl and tried to navigate the menus using a gamepad
joystick. I tilted the joystick axis DOWN to scroll the highlighted menu
item DOWN by ONE entry.
The highlighted menu item scrolled DOWN by several items at once.
It was impossible to select a particular menu item unless it happened to
stop scrolling on that item.
The highlighted menu item should scroll down to the NEXT item for
each time the joystick axis is tilted down, and no further. I made some
changes to the source and generated the following diff which seemed to
alleviate the problem. My apologies if this is unusable since I've never
generated a patch before.
*****BEGIN DIFF OUTPUT OF kobo.cpp*****
100a101,104
> int lastaxis_x = 0;
> int lastaxis_y = 0;
> int deadzone = 6400;
>
1725c1729
< if(ev.jaxis.value < -3200)
---
> if(ev.jaxis.value < -deadzone && lastaxis_x > -deadzone)
1730c1734
< else if(ev.jaxis.value > 3200)
---
> else if(ev.jaxis.value > deadzone && lastaxis_x < deadzone)
1741a1746
> lastaxis_x = ev.jaxis.value;
1746c1751
< if(ev.jaxis.value < -3200)
---
> if(ev.jaxis.value < -deadzone && lastaxis_y > -deadzone)
1751c1756
< else if(ev.jaxis.value > 3200)
---
> else if(ev.jaxis.value > deadzone && lastaxis_y < deadzone)
1762a1768
> lastaxis_y = ev.jaxis.value;
*****END DIFF OUTPUT OF kobo.cpp*****
-- System Information: Debian Release: wheezy/sid Architecture: i386 (i686)
Kernel: Linux 3.2.0-69-generic-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages kobodeluxe depends on:
ii kobodeluxe-data 0.5.1-6
ii libc6 2.15-0ubuntu10.7
ii libgcc1 1:4.6.3-1ubuntu5
ii libsdl-image1.2 1.2.10-3
ii libsdl1.2debian 1.2.14-6.4ubuntu3+6.0trisquel2
ii libstdc++6 4.6.3-1ubuntu5
kobodeluxe recommends no packages.
kobodeluxe suggests no packages.
-- no debconf information
More information about the Pkg-games-devel
mailing list