mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
added HID support for Microsoft devices
This commit is contained in:
parent
8bd19008f2
commit
7c9e2afdcc
6 changed files with 97 additions and 8 deletions
|
@ -1,5 +1,9 @@
|
|||
package hid
|
||||
|
||||
import (
|
||||
"github.com/bettercap/bettercap/network"
|
||||
)
|
||||
|
||||
const (
|
||||
amzFrameDelay = 5
|
||||
)
|
||||
|
@ -14,7 +18,7 @@ func (b AmazonBuilder) frameFor(cmd *Command) []byte {
|
|||
0x0f, 0, cmd.Mode, 0, cmd.HID, 0}
|
||||
}
|
||||
|
||||
func (b AmazonBuilder) BuildFrames(commands []*Command) error {
|
||||
func (b AmazonBuilder) BuildFrames(dev *network.HIDDevice, commands []*Command) error {
|
||||
for i, cmd := range commands {
|
||||
if i == 0 {
|
||||
for j := 0; j < 5; j++ {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue