kukugt / mupen64plus

Automatically exported from code.google.com/p/mupen64plus
0 stars 0 forks source link

blight_input: It is not possible to map one N64 button to two different keys/buttons #164

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Problem:
Most PC gamepads don't resemble the N64 button layout (they usually have
less face button but carry additional analog sticks, trigger buttons, ...).
blight_input allows only one gamepad button mapping for each N64 button.
This makes it hard to find a button mapping which is comfortable for all games.

Usage example:
Some games assign individual actions to the C-buttons while other games use
them as directions. 

Solution:
To create an universal mapping that can be used for many games it might be
convenient for the user to have one button in two different locations.
Attached patch modifies blight_input so that each N64 button can be mapped
to two keyboard keys, two gamepad buttons and two axis movements. 

Technical details:
The changes made break compatibility with the old format for
blight_input.conf, the patch tries to detect old config files and convert
them to the new format. The GUI is updated to show both mappings if a
second one is present but currently only the first mapping can be changed
through the GUI. The second mapping has to be set via the config file.

(This patch depends on my other patch which I posted in Issue 142. If you
think that my other patch is incorrect then you can easily modify this
patch to apply without the other one.)

Original issue reported on code.google.com by ling.weak@googlemail.com on 16 Oct 2008 at 10:00

Attachments:

GoogleCodeExporter commented 8 years ago
This should be added.

Original comment by sgorman07@gmail.com on 20 Oct 2008 at 1:42

GoogleCodeExporter commented 8 years ago
not a defect.

Original comment by richard...@gmail.com on 30 Dec 2008 at 6:47

GoogleCodeExporter commented 8 years ago
I don't agree with the patch and this bug is about an old plugin. I merge it to 
the bug against the new plugin mupen64plus-input-sdl

Original comment by s...@narfation.org on 18 Dec 2013 at 12:40