NuiLab / code-vr

🐍 Program and explore real applications with virtual reality! Learn how to program, compete to build apps, and even collaborate with other people in realtime, in game or not!
MIT License
146 stars 13 forks source link

Fix Input System Overshadowing #2

Closed alaingalvan closed 7 years ago

alaingalvan commented 7 years ago

Easy first pull request!

If you're pressing 2 keys that affect the same axis mapping, one can overshadow the other when releasing keys. Could be solved w/ a u8 with each bit mapped to if an input is active or bool array.

A u8 would limit the input map to only accept a max of 8 axis bound values, which honestly sounds like more than enough, and could mean the vector sizes of the input map are known at compile time, boosting performance.

alaingalvan commented 7 years ago

I'll reopen this issue when we get back to it. 👍