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