Package-level declarations
Types
Applet focus events are sent whenever the client either loses or gains focus. This can be seen by minimizing and maximizing the clients.
Camera position events are sent whenever the client's camera changes position, at a maximum frequency of 20 client cycles (20ms/cc).
Keyboard events are transmitted at a maximum frequency of every 20 milliseconds. This means that - almost always - a single key is only sent in each packet, as it is very unlikely to get more than one key pressed within a 20-millisecond window, even when trying. While the packet does send the lastTransmittedKeyPress per key pressed, there is a flaw in the logic and any subsequent keys after the first will always write a value of 0. For this reason, in order to reduce the memory footprint of this message, we omit any subsequent timestamps and reduce our keys to a byte array value class for even further compression. If the time delta is greater than 16,777,215 milliseconds since the last key transmission, the lastTransmittedKeyPress value will be 16,777,215.
Mouse click messages are sent whenever the user clicks with the right or left mouse button, and if the "Middle mouse button controls camera" is disabled, middle buttons (the scroll wheel itself).
Mouse move messages are sent when the user moves their mouse across the client.
Mouse scroll message is sent whenever the user scrolls using their mouse.
Mouse click messages are sent whenever the user clicks with the right or left mouse button, and if the "Middle mouse button controls camera" is disabled, middle buttons (the scroll wheel itself).
Mouse move messages are sent when the user moves their mouse across the client, in this case, on the enhanced C++ clients.