Input Changes #337
garrynewman
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So I'm updating how Input works.
Before
Input was a class on each client. To access it you grabbed it from Client or from one of the helper redirect functions (Entity.Input).
Now
Input is a global. On the client it is always available. On the server it is available only during Simulate for that specific client.
Why
This is simpler. A single global static class where you can get access to everything Input related. It also punishes doing naughty things on the server like using the player input outside of the Simulate loop, which is an indication that you're doing something wrong.
Example
Beta Was this translation helpful? Give feedback.
All reactions