vnIIc/Protocol.md

22 lines
823 B
Markdown
Raw Permalink Normal View History

2018-10-29 05:35:38 +00:00
Client sends commands:
* Keyboard
2018-11-02 03:28:05 +00:00
* $00 _size=1_ _keystate_ >=128 indicates a key is down, else no key down
2018-10-29 05:35:38 +00:00
* Buttons/Apple Keys
2018-11-02 03:28:05 +00:00
* $10 _size=1_ _BUTN0_ >=128 indicates button0 is down, else button0 up
* $11 _size=1_ _BUTN0_ >=128 indicates button1 is down, else button1 up
2018-10-29 05:35:38 +00:00
* Paddles/Joystick
2018-11-02 03:28:05 +00:00
* $20 _size=1_ _PDL0_ Paddle 0/Joystick X-axis state, 0...255
* $21 _size=1_ _PDL1_ Paddle 1/Joystick Y-axis state, 0...255
2018-10-29 05:35:38 +00:00
* Mouse - _TBD_
2018-11-02 03:28:05 +00:00
* $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
2018-10-29 05:35:38 +00:00
* Screen
2018-11-02 03:28:05 +00:00
* $80 _size=0_ please send screen; client waits for 8192 byte buffer
2018-11-02 04:02:05 +00:00
Switch mouse to be signed 8-bit deltax, deltay ?