Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom sticks in evdev broken by #3817 #3962

Closed
toccata10 opened this issue Dec 21, 2017 · 5 comments
Closed

custom sticks in evdev broken by #3817 #3962

toccata10 opened this issue Dec 21, 2017 · 5 comments

Comments

@toccata10
Copy link
Contributor

With #3817, the directions for my custom stick (based on a DragonRise board) can't be used anymore.
It could be because of different ranges: with an xbox 360 controller: it goes from -32767 to +32768, whereas with the dragonrise, it goes from 0 to 255.
A screenshot of the configuration window with my non-moving stick showing a big offset (only left analog is important):
selection_053

@Megamouse
Copy link
Contributor

buy another gamepad

@Megamouse
Copy link
Contributor

I get the feeling this would be much easier if they would add negative values to the dragonrise drivers

@toccata10
Copy link
Contributor Author

Yes, sure.
A workaround for me is to comment these lines (in 2 places) to use the Dragonrise

		// Triggers do not need handling of negative values
//		if (min >= 0)
//		{
//			float fvalue = ScaleStickInput(val, min, max);
//			button_values.emplace(code, std::make_pair<u16, bool>(static_cast<u16>(fvalue), false));
//			continue;
//		}

3 ideas: as @Megamouse suggested, add a button

a button like "handle trigger axis"
or it could be in a configuration file (with the gamepad name) like:

DragonRise: true
Microsoft Xbox360: false

or a parameter in the config file:
handle trigger axis: true

@Megamouse
Copy link
Contributor

can be closed?

@toccata10
Copy link
Contributor Author

Closed thanks to #3974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants