microsoft / MixedReality-UXTools-Unreal

UX tools and components for developing Mixed Reality applications in UE4.
https://microsoft.github.io/MixedReality-UXTools-Unreal/
MIT License
316 stars 86 forks source link

delete inputaction mapping #55

Closed tahoorasf1 closed 2 years ago

tahoorasf1 commented 2 years ago

Hello, how can I delete the automatic creation of uxtrightsselect?

lukastoenneMS commented 2 years ago

This input action is defined by UxtDefaultHandTracker indirectly. You can remove it by removing the 4 lines that use UxtHandTrackerInputActions::RightSelect here: https://github.com/microsoft/MixedReality-UXTools-Unreal/blob/6ae6bc6bb7dfa6c7ad4bbdebfeedc39ece1c0f73/UXToolsGame/Plugins/UXTools/Source/UXToolsInput/Private/UxtDefaultHandTracker.cpp#L14-L36

If you remove all the mappings using this action name it will not be created.

tahoorasf1 commented 2 years ago

@lukastoenneMS, thanks for answering, but it is not the correct answer. When I delete this part from my code and press F5 on my keyboard, the created unreal still has a key binding of uxtrightsselect.

lukastoenneMS commented 2 years ago

Can you check the Config/DefaultInput.ini file if it contains entries for the "UxtRightSelect" actions? It seems that manually changing input mappings can trigger an update where it enters all the existing actions into the init file. If you find them there and remove them it should at least not add those actions back automatically.

tahoorasf1 commented 2 years ago

Yes, nothing is there. The only other place that I have is "inputcoreTypes.cpp". Should I delete it from there? BTW, when you delete it in your project is it gone? And I am working with 4.26 unreal.

tahoorasf1 commented 2 years ago

By the way, when I am running using the F5 after creating unreal with the extra binding, the Config/DefaultInput.ini file does not show the extra buttons. please confirm if you see this problem in 4.27,@lukastoenneMS

lukastoenneMS commented 2 years ago

I don't know why this wouldn't work. For me doing this: image removes the action from here: image

InputCoreTypes.cpp is a UE4 engine file and defines input keys, but has nothing to do with this action and you shouldn't modify it (that would require an engine rebuild anyway).

tahoorasf1 commented 2 years ago

When I remove the action from unreal, hololens perfectly works in unreal editor. But as soon as I make the build-in actual hololens, it is not working.