You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.1 Reported for operating system, platform: Android (All), All
Comments on the original bug report:
On 2014-01-22 02:12:58 +0000, David Brady wrote:
Created attachment 1529
Patch to re-assign button IDs
The GameController API is very nice, but it would be great to fall back to the Joystick API if the GameController is not mapped. But sadly, the button IDs for SDL Android do not correspond even slightly to button mappings on other platforms. I would like to re-order the default button IDs to be somewhat reasonable, so that even unsupported controllers can be a little playable.
Patch is attached which reorders the basic joystick button IDs to match the GameController API (where applicable).
On 2014-01-22 02:36:04 +0000, David Brady wrote:
Created attachment 1530
Sort Joystick axes
Related to this bug... This isn't the best solution to the problem, but joystick axes can come in a semi-random order. This simply sorts them by axis ID, which works well for standard controllers (even more so if # 2229 were accepted). It might be better to explicitly reorder the left and right sticks to the first 4 axes, then sort the rest. But I wanted to keep it simple.
On 2014-01-22 02:47:07 +0000, David Brady wrote:
Created attachment 1531
Fix for typo in button ID patch
On 2014-01-22 23:30:57 +0000, Philipp Wiesemann wrote:
(In reply to David Brady from comment # 1)
Created attachment 1530 [details]
Sort Joystick axes
Related to this bug... This isn't the best solution to the problem, but
joystick axes can come in a semi-random order. This simply sorts them by
axis ID, which works well for standard controllers (even more so if # 2229
were accepted). It might be better to explicitly reorder the left and right
sticks to the first 4 axes, then sort the rest. But I wanted to keep it
simple.
The Comparator's compare() method could be simplified by just subtracting the two values. It does not have to be exactly -1/0/1 just negative/0/positive. [1]
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Patch to re-assign button IDs (8122.patch, text/plain, 2014-01-22 02:12:58 +0000, 4234 bytes)Sort Joystick axes (8123.patch, text/plain, 2014-01-22 02:36:04 +0000, 1971 bytes)Reported in version: HG 2.1
Reported for operating system, platform: Android (All), All
Comments on the original bug report:
On 2014-01-22 02:12:58 +0000, David Brady wrote:
On 2014-01-22 02:36:04 +0000, David Brady wrote:
On 2014-01-22 02:47:07 +0000, David Brady wrote:
On 2014-01-22 23:30:57 +0000, Philipp Wiesemann wrote:
On 2014-01-23 11:45:43 +0000, Gabriel Jacobo wrote:
On 2014-01-23 18:22:53 +0000, David Brady wrote:
On 2014-01-24 12:55:27 +0000, Gabriel Jacobo wrote:
The text was updated successfully, but these errors were encountered: