mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
new: hid.inject now supports non visible devices (talking directly to the dongle) via the hid.force.type parameter
This commit is contained in:
parent
a8ecb5472f
commit
d8d208ae17
4 changed files with 58 additions and 10 deletions
|
@ -16,3 +16,22 @@ var FrameBuilders = map[network.HIDType]FrameBuilder{
|
|||
network.HIDTypeAmazon: AmazonBuilder{},
|
||||
network.HIDTypeMicrosoft: MicrosoftBuilder{},
|
||||
}
|
||||
|
||||
func availBuilders() []string {
|
||||
return []string{
|
||||
"logitech",
|
||||
"amazon",
|
||||
"microsoft",
|
||||
}
|
||||
}
|
||||
|
||||
func builderFromName(name string) FrameBuilder {
|
||||
switch name {
|
||||
case "amazon":
|
||||
return AmazonBuilder{}
|
||||
case "microsoft":
|
||||
return MicrosoftBuilder{}
|
||||
default:
|
||||
return LogitechBuilder{}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue