asusralis
Topic Author
Posts: 125
Joined: 30 Jul 2018, 05:03

Does mapping for Noesis.Key and UnityEngine.KeyCode exist?

02 May 2022, 14:24

I need to covert a Noesis.Key to UnityEngine.KeyCode. Does this exist anywhere?
 
User avatar
sfernandez
Site Admin
Posts: 2536
Joined: 22 Dec 2011, 19:20

Re: Does mapping for Noesis.Key and UnityEngine.KeyCode exist?

02 May 2022, 16:16

There is a NoesisKeyCodes internal class that maps Unity keys to Noesis keys, you can make it public to search for the key using LINQ
NoesisKeyCodes._unityToNoesis.FirstOrDefault(x => x.Value == unityKey).Key;
Or just keep your own dictionary for that noesis to unity key conversion.
 
asusralis
Topic Author
Posts: 125
Joined: 30 Jul 2018, 05:03

Re: Does mapping for Noesis.Key and UnityEngine.KeyCode exist?

02 May 2022, 18:33

Thanks

Who is online

Users browsing this forum: Semrush [Bot] and 3 guests