diff --git a/main.go b/main.go index 7fce446..72a57d9 100644 --- a/main.go +++ b/main.go @@ -59,13 +59,13 @@ func main() { } if ev.Code == evdev.KEY_F24 && ev.Value == 1 { slog.Info("PTT ON") - obj.Go("net.sourceforge.mumble.Mumble.startTalking", 0, nil) + obj.Call("net.sourceforge.mumble.Mumble.startTalking", 0) } if ev.Code == evdev.KEY_F24 && ev.Value == 0 { slog.Info("PTT OFF") - obj.Go("net.sourceforge.mumble.Mumble.stopTalking", 0, nil) + obj.Call("net.sourceforge.mumble.Mumble.stopTalking", 0) } } - obj.Go("net.sourceforge.mumble.Mumble.stopTalking", 0, nil) + obj.Call("net.sourceforge.mumble.Mumble.stopTalking", 0) slog.Info("Exiting") }