mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-02 02:42:47 +02:00
extract webrtc payload to own module.
This commit is contained in:
parent
e812cb9fbf
commit
00fc3afcd7
6 changed files with 83 additions and 75 deletions
22
internal/webrtc/payload/send.go
Normal file
22
internal/webrtc/payload/send.go
Normal file
|
@ -0,0 +1,22 @@
|
|||
package payload
|
||||
|
||||
const (
|
||||
OP_CURSOR_POSITION = 0x01
|
||||
OP_CURSOR_IMAGE = 0x02
|
||||
)
|
||||
|
||||
type CursorPosition struct {
|
||||
Header
|
||||
|
||||
X uint16
|
||||
Y uint16
|
||||
}
|
||||
|
||||
type CursorImage struct {
|
||||
Header
|
||||
|
||||
Width uint16
|
||||
Height uint16
|
||||
Xhot uint16
|
||||
Yhot uint16
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue