vnIIc/Protocol.md
2018-10-28 22:35:38 -07:00

691 B

Client sends commands:

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