Closed KumaWang closed 3 months ago
Wow, that looks amazing! I apologize if any of these updates effect your progress. I had been working on making sure the engine is fully modern compliant, and now that it is I don't anticipate any other major API changes.
Usually I try to never modify the API but occasionally there is an improvement necessary that requires a small change. In this case using the key code numerical value has been deprecated for years, and a few people asked me to change it because the improved way of handling the physical keyboard layout.
I understand you are making an IDE, which can make the fix more challenging. I've had to deal with some incredibly difficult Unreal Engine 4 merges before with at a huge company with multiple projects where we made too many custom engine modifications. So trust me, I know where you are coming from!
If you have any questions at all while working with the engine feel free ask. The LittleJS discord is probably the best place to post. I am happy to help with any integration issues you may have. Can't wait to see what you make!
I think you could replace the keycodes with something like an int enum, i guessing you've thought about it, but this is more friendly to IDE code auto-completion, and can I join your team? keys.txt
You can still use that same enum, just replace the numbers with strings that the key corresponds to. Creating an enum like that is good practice and should help with changing it over.
thank you ~
We have a game IDE that uses littlejs as the engine. In the new version, you have modified the keycode and some of our functions cannot be used. If possible, please make the update compatible with the old version of the interface.