Florin9doi / HidPeripheral

Simulation Bluetooth HID Device(Mouse/Keyboard) for Android,Support 「Android、iOS、Windows...」

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HidPeripheral

Simulation Bluetooth HID Device(Mouse/Keyboard) for Android,Support 「Android、iOS、Windows...」

Register HID Device

BluetoothAdapter bluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
bluetoothAdapter.getProfileProxy(context, mProfileServiceListener, BluetoothProfile.HID_DEVICE);

// SUBCLASS1_COMBO = MOUSE+KEYBOARD
BluetoothHidDeviceAppSdpSettings sdp = new BluetoothHidDeviceAppSdpSettings(HidConsts.NAME, HidConsts.DESCRIPTION, HidConsts.PROVIDER, BluetoothHidDevice.SUBCLASS1_COMBO, HidConsts.Descriptor);
mHidDevice.registerApp(sdp, null, null, Executors.newCachedThreadPool(), mCallback);

iOS Device(Need to open the AssistiveTouch)

System Setting -> Accessibility -> Touch -> AssistiveTouch

Screenshots

Mouse Keyboard

About

Simulation Bluetooth HID Device(Mouse/Keyboard) for Android,Support 「Android、iOS、Windows...」


Languages

Language:Kotlin 88.1%Language:Java 11.9%