mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-30 09:27:10 +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
30
internal/webrtc/payload/receive.go
Normal file
30
internal/webrtc/payload/receive.go
Normal file
|
@ -0,0 +1,30 @@
|
|||
package payload
|
||||
|
||||
const (
|
||||
OP_MOVE = 0x01
|
||||
OP_SCROLL = 0x02
|
||||
OP_KEY_DOWN = 0x03
|
||||
OP_KEY_UP = 0x04
|
||||
OP_BTN_DOWN = 0x05
|
||||
OP_BTN_UP = 0x06
|
||||
)
|
||||
|
||||
type Move struct {
|
||||
Header
|
||||
|
||||
X uint16
|
||||
Y uint16
|
||||
}
|
||||
|
||||
type Scroll struct {
|
||||
Header
|
||||
|
||||
X int16
|
||||
Y int16
|
||||
}
|
||||
|
||||
type Key struct {
|
||||
Header
|
||||
|
||||
Key uint32
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue