Add tests for EventBuffer.
This commit is contained in:
parent
3ffccf4c08
commit
2a86751df9
4 changed files with 116 additions and 8 deletions
|
@ -41,7 +41,7 @@ func initVirtualBuffers(config *config.ConfigParser) (map[string]*virtualdevice.
|
|||
func getVirtualDevices(buffers map[string]*virtualdevice.EventBuffer) map[string]*evdev.InputDevice {
|
||||
devices := make(map[string]*evdev.InputDevice)
|
||||
for name, buffer := range buffers {
|
||||
devices[name] = buffer.Device
|
||||
devices[name] = buffer.Device.(*evdev.InputDevice)
|
||||
}
|
||||
return devices
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue