Client sends commands:
- Keyboard
- $00 size=1 keystate >=128 indicates a key is down, else no key down
- Buttons/Apple Keys
- $10 size=1 BUTN0 >=128 indicates button0 is down, else button0 up
- $11 size=1 BUTN0 >=128 indicates button1 is down, else button1 up
- Paddles/Joystick
- $20 size=1 PDL0 Paddle 0/Joystick X-axis state, 0...255
- $21 size=1 PDL1 Paddle 1/Joystick Y-axis state, 0...255
- Mouse - TBD
- $30 size=2 MOUSEXLO MOUSEXHI mouse x pos 0...65535
- $31 size=2 MOUSEYLO MOUSEYHI mouse x pos 0...65535
- $32 size=1 MOUSEBTN mouse button state
- Screen
- $80 size=0 please send screen; client waits for 8192 byte buffer
Switch mouse to be signed 8-bit deltax, deltay ?