baadly slowdown verison

This commit is contained in:
2019-10-31 02:33:37 +03:00
parent 8dd242b242
commit e0bab00a23
2 changed files with 83 additions and 62 deletions

View File

@ -7,7 +7,7 @@ import (
var modifiers = []int{blt.TK_SHIFT, blt.TK_ALT, blt.TK_CONTROL}
func ReadKey(ctx util.ClientCtx) (string, int) {
func ReadKey() (string, int) {
if !blt.HasInput() {
return "", blt.TK_NONE
}
@ -27,7 +27,7 @@ func ReadKey(ctx util.ClientCtx) (string, int) {
if blt.Check(blt.TK_CONTROL) != 0 {
pressed = "Ctrl+" + pressed
}
ctx.Logger().Debug().Msg(pressed)
//ctx.Logger().Debug().Msg(pressed)
}
return pressed, key