generic PKM KM Loader

Minizbot2012 3 years ago
parent e9c335893d
commit a08f9f3f60

@ -1,6 +1,11 @@
package devices
import "github.com/OrbTools/OrbCommon/gui"
import (
"encoding/binary"
"io"
"github.com/OrbTools/OrbCommon/gui"
)
//ExtraBytes defines extra bytes to a type
type ExtraBytes struct {
@ -19,3 +24,9 @@ type Device struct {
var DeviceList = []string{
"Orbweaver",
}
//SavePKMKeymap saves an orb after edit
func SavePKMKeymap(mapped interface{}, file io.WriteCloser) {
binary.Write(file, binary.LittleEndian, mapped)
file.Close()
}

Loading…
Cancel
Save