You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm curious why a hash is being used here rather than just leaving the base u32 value in, it's a guaranteed unique value + it'll always be 32 bits. Am I missing something?
@mixy1 the hash does not just consist of modifiers, it also includes the key.
I think there maybe a way to avoid hashing by using a u64, 32 bit to store the modifiers id and the other 32 to store the key code (might need a function to map key Code to a u32).
I'm curious why a hash is being used here rather than just leaving the base u32 value in, it's a guaranteed unique value + it'll always be 32 bits. Am I missing something?
i.e.
it should rather be
If the id is related to modifiers I can just match on the concatenation of the flags again after throughout the codebase. Wouldn't mind opening a pr.
The text was updated successfully, but these errors were encountered: