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

Trackpad face buttons axis mappings #114

Closed
PepeDuke opened this issue Jan 23, 2020 · 9 comments
Closed

Trackpad face buttons axis mappings #114

PepeDuke opened this issue Jan 23, 2020 · 9 comments

Comments

@PepeDuke
Copy link

PepeDuke commented Jan 23, 2020

https://imgur.com/a/9X1N8kM
Using settings above i expect that steam vr mapping would result in axis movment as with old system but instead default bindings in steam vr is the code blow whitch is both axis (MoveRight,MoveUp) bound to X (1.0) not matter if i add _X or _Y to any of these. I'm going to use Action mapping instead of axis to fix this, but i feel like this should work

bindings

			{
				"path": "/user/hand/right/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveRight axis"
					}
				}
			},
			{
				"path": "/user/hand/left/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveRight axis"
					}
				}
			},
			{
				"path": "/user/hand/right/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveRight axis"
					}
				}
			},
			{
				"path": "/user/hand/left/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveRight axis"
					}
				}
			},
			{
				"path": "/user/hand/right/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveUp axis"
					}
				}
			},
			{
				"path": "/user/hand/left/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveUp axis"
					}
				}
			},
			{
				"path": "/user/hand/right/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveUp axis"
					}
				}
			},
			{
				"path": "/user/hand/left/input/trackpad",
				"mode": "scalar_constant",
				"inputs": {
					"value": {
						"output": "/actions/main/in/MoveUp axis"
					}
				}
			},

@PepeDuke PepeDuke changed the title Trackpad button axis mappings Trackpad face buttons axis mappings Jan 23, 2020
@1runeberg 1runeberg self-assigned this Jan 23, 2020
@1runeberg 1runeberg added help wanted Extra attention is needed enhancement New feature or request labels Jan 23, 2020
@1runeberg
Copy link
Contributor

1runeberg commented Jan 23, 2020

Hi @PepeDuke - Yeah you should be able to do this in the Action/Key Mappings if I'm understanding your intent correctly.

If you're wanting to do something like free movement with Vector2s, along with adding the _X & _Y in the Axis Action Names, you need to use the Trackpad X & Trackpad Y keys:
image

@1runeberg 1runeberg removed the enhancement New feature or request label Jan 23, 2020
@PepeDuke
Copy link
Author

PepeDuke commented Jan 24, 2020

As i understand Trackpad X & Trackpad Y is not press of a button on controller, but just touching it, that works correctly but not what i need. My thoughts behind mentioning the _X and _Y was that i was thinking it might force the axis to be Y or X but it does not.

@1runeberg
Copy link
Contributor

1runeberg commented Jan 24, 2020

the mode should be scalar_constant if it's an axis, so you can tweak the constant itself (when it triggers) from the steamvr dashboard if you're not getting the result or sensitivity you need.

@PepeDuke
Copy link
Author

Yes I can, but if it's not default it's useless as you can't expect non-dev person to change something it steamvr dashboard. also i don't see how this is [help wanted] tag as this is request, i already have it working with action mapping but it would be nice to do it trough axis mapping.

@1runeberg
Copy link
Contributor

1runeberg commented Jan 25, 2020

Hi @PepeDuke - As a dev you can use the SteamVRBindings dashboard to update the default bindings generated by the plugin ("Replace Default Binding" button or "Export Binding File" if you want to do a manual overwrite of you project jsons). As the engine UI doesn't have all the features the new SteamVR Input system has and paradigms are different in some cases, tweaking values and doing more advanced settings such as chords via the SteamVR Input dashboard is unavoidable at this time.

Your users can likewise use the input dashboard to override any developer settings once your game is published and share them to your community of users.

However, we can review in 4.25 and see if we can easily derive and differentiate intents from what the Engine's UI and Input framework exposes at that time, as well as see what our options are from the runtime, so we appreciate your request/feedback.

@1runeberg 1runeberg added Engine Dependent Enhancement and removed help wanted Extra attention is needed labels Jan 25, 2020
@PepeDuke
Copy link
Author

Thank you

@Andyhdr
Copy link

Andyhdr commented Jan 30, 2020

So with the latest hotfix in 4.24 the trackpad touching isn´t giving any axis values anymore. I have set everything up in the input settings, but the value is always 0

@1runeberg
Copy link
Contributor

1runeberg commented Jan 30, 2020

Hi @Andyhdr - How are you using the axis value in your game?

I've also opened a separate Issue for this: #115

@1runeberg
Copy link
Contributor

Fixed in 4.26, thanks for reporting!

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

3 participants