mirror of https://github.com/OrbTools/OrbMap
parent
017340280e
commit
3f74942458
@ -0,0 +1,5 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/OrbTools/OrbMap/devices/orbweaver"
|
||||
)
|
@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
out, _ := os.Create("boot.go")
|
||||
out.Write([]byte("package main\n\nimport (\n"))
|
||||
files, _ := ioutil.ReadDir("./devices/")
|
||||
BasePkg := "github.com/OrbTools/OrbMap/devices/"
|
||||
for _, fil := range files {
|
||||
if fil.IsDir() {
|
||||
out.Write([]byte("\t_ \"" + BasePkg + fil.Name() + "\"\n"))
|
||||
}
|
||||
}
|
||||
out.Write([]byte(")"))
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package registry
|
||||
|
||||
import (
|
||||
"github.com/OrbTools/OrbMap/keyevents"
|
||||
)
|
||||
|
||||
var (
|
||||
Systems map[string]Device
|
||||
)
|
||||
|
||||
type Device interface {
|
||||
OrbLoop(chan *keyevents.KeyEvent)
|
||||
ProcOrbs([]string)
|
||||
}
|
||||
|
||||
func init() {
|
||||
Systems = make(map[string]Device)
|
||||
}
|
Loading…
Reference in New Issue