Export procKey and add comment

main
Minizbot2012 4 years ago
parent 8a80fc90df
commit c3e5510dd3
No known key found for this signature in database
GPG Key ID: 977C8ADE12361917

@ -10,7 +10,9 @@ var vkm uinput.Keyboard
func init() {
vkm, _ = uinput.CreateKeyboard("/dev/uinput", []byte("Orbmap"))
}
func procKey(kb chan *keyevents.KeyEvent) {
//ProcKey keyboard emulator loop
func ProcKey(kb chan *keyevents.KeyEvent) {
for {
KeyEv := <-kb
if KeyEv.Type == 1 {

@ -18,7 +18,7 @@ func main() {
Maps := orbweaver.ProcOrbFiles(orbs, path)
KeyBus := make(chan *keyevents.KeyEvent, 128)
for i := 0; i <= 4; i++ {
go keypad.procKey(KeyBus)
go keypad.ProcKey(KeyBus)
}
orbweaver.OrbLoop(Maps, KeyBus)
}

Loading…
Cancel
Save