├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .task └── checksum │ ├── build │ └── build-debug ├── LICENSE ├── README.md ├── Taskfile.yml ├── assets └── bluetooth-usb-peripheral-relay-image.png ├── bt-hid-relay.service ├── cmd ├── bt-hid-relay │ ├── main.go │ └── main_test.go ├── diagnose-io │ ├── main.go │ └── main_test.go └── simulate-input │ ├── main.go │ └── main_test.go ├── go.mod ├── internal ├── device │ ├── device.go │ ├── device_test.go │ └── host_check.go ├── logger │ ├── logger.go │ └── logger_test.go ├── relay │ ├── event_stream.go │ ├── inputevent_32.go │ ├── inputevent_64.go │ ├── keyboard.go │ ├── keyboard_test.go │ ├── mouse.go │ ├── mouse_test.go │ └── relay.go └── retry │ ├── backoff.go │ └── backoff_test.go └── scripts ├── pair_devices.sh ├── setup_bluetooth.sh ├── setup_gadgets.sh ├── setup_usb_host.sh └── uninstall ├── undo_setup_gadgets.sh └── undo_setup_usb_host.sh /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /bin/* 2 | cmd/.DS_Store 3 | .vscode 4 | -------------------------------------------------------------------------------- /.task/checksum/build: -------------------------------------------------------------------------------- 1 | cc4d589acd7813f88a90b4382e9873a9 2 | -------------------------------------------------------------------------------- /.task/checksum/build-debug: -------------------------------------------------------------------------------- 1 | 3325b4ae4c77452127360da486bf8bcf 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/README.md -------------------------------------------------------------------------------- /Taskfile.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/Taskfile.yml -------------------------------------------------------------------------------- /assets/bluetooth-usb-peripheral-relay-image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/assets/bluetooth-usb-peripheral-relay-image.png -------------------------------------------------------------------------------- /bt-hid-relay.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/bt-hid-relay.service -------------------------------------------------------------------------------- /cmd/bt-hid-relay/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/cmd/bt-hid-relay/main.go -------------------------------------------------------------------------------- /cmd/bt-hid-relay/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/cmd/bt-hid-relay/main_test.go -------------------------------------------------------------------------------- /cmd/diagnose-io/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/cmd/diagnose-io/main.go -------------------------------------------------------------------------------- /cmd/diagnose-io/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/cmd/diagnose-io/main_test.go -------------------------------------------------------------------------------- /cmd/simulate-input/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/cmd/simulate-input/main.go -------------------------------------------------------------------------------- /cmd/simulate-input/main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/cmd/simulate-input/main_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/go.mod -------------------------------------------------------------------------------- /internal/device/device.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/device/device.go -------------------------------------------------------------------------------- /internal/device/device_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/device/device_test.go -------------------------------------------------------------------------------- /internal/device/host_check.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/device/host_check.go -------------------------------------------------------------------------------- /internal/logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/logger/logger.go -------------------------------------------------------------------------------- /internal/logger/logger_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/logger/logger_test.go -------------------------------------------------------------------------------- /internal/relay/event_stream.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/event_stream.go -------------------------------------------------------------------------------- /internal/relay/inputevent_32.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/inputevent_32.go -------------------------------------------------------------------------------- /internal/relay/inputevent_64.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/inputevent_64.go -------------------------------------------------------------------------------- /internal/relay/keyboard.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/keyboard.go -------------------------------------------------------------------------------- /internal/relay/keyboard_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/keyboard_test.go -------------------------------------------------------------------------------- /internal/relay/mouse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/mouse.go -------------------------------------------------------------------------------- /internal/relay/mouse_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/mouse_test.go -------------------------------------------------------------------------------- /internal/relay/relay.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/relay/relay.go -------------------------------------------------------------------------------- /internal/retry/backoff.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/retry/backoff.go -------------------------------------------------------------------------------- /internal/retry/backoff_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/internal/retry/backoff_test.go -------------------------------------------------------------------------------- /scripts/pair_devices.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/scripts/pair_devices.sh -------------------------------------------------------------------------------- /scripts/setup_bluetooth.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/scripts/setup_bluetooth.sh -------------------------------------------------------------------------------- /scripts/setup_gadgets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/scripts/setup_gadgets.sh -------------------------------------------------------------------------------- /scripts/setup_usb_host.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/scripts/setup_usb_host.sh -------------------------------------------------------------------------------- /scripts/uninstall/undo_setup_gadgets.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/scripts/uninstall/undo_setup_gadgets.sh -------------------------------------------------------------------------------- /scripts/uninstall/undo_setup_usb_host.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bahaaador/bluetooth-usb-peripheral-relay/HEAD/scripts/uninstall/undo_setup_usb_host.sh --------------------------------------------------------------------------------