Bluetooth Keyboard

Discussion of keyboards, gamepads, joysticks and other input related peripherals.
werpu
Posts: 90
Joined: Sun May 24, 2020 7:37 pm
Has thanked: 12 times
Been thanked: 16 times

Bluetooth Keyboard

Unread post by werpu »

Hi this is quite an unusual problem. I have a multi function remote which also can act as a Bluetooth keyboard via its cursor keys.
(key events arrow up etc...)
Now i have managed to pair it into mister via a Bluetooth LE dongle.
I now have the problem despite the remote being registered into the system as bluetooth keyboard, I cannot use the cursor navigation in the mister ui to navigate the menu.
However it gets even weirder, when I start a bash in mister, I can navigate within the bash (aka left right, up down) also the other keys are recognized.
Does anyone have any idea what the problem could be? My guess is it is a weird timing issue because every 50th or so keypress is recognized by the ui (aka I had random reactions but nothing reproducible in the ui)

werpu
Posts: 90
Joined: Sun May 24, 2020 7:37 pm
Has thanked: 12 times
Been thanked: 16 times

Re: Bluetooth Keyboard

Unread post by werpu »

Btw. I found a really good post on how to pair devices in which need a random key. Mister does not display one or asks for one in the ui:
https://www.reddit.com/r/MiSTerFPGA/com ... equires_a/

worked for me like a charm (my remote only connects on such random number pairings)

werpu
Posts: 90
Joined: Sun May 24, 2020 7:37 pm
Has thanked: 12 times
Been thanked: 16 times

Re: Bluetooth Keyboard

Unread post by werpu »

Ok it really seems to be a timing issue on the ui, had the up key pressed for 10 seconds and apparently 1 up was registered by the ui, while in the command line the cursor navigation seems to work instantly.
Not sure why, but this looks more like an input bug to me. Tried another bluetooth dongle btw. same result! Other keys like escape work as expected only the cursor keys make problems!

werpu
Posts: 90
Joined: Sun May 24, 2020 7:37 pm
Has thanked: 12 times
Been thanked: 16 times

Re: Bluetooth Keyboard

Unread post by werpu »

Ok one thing I noticed also when I try to remap in the mister menu the cursor keys to wsad, then it fails neither works!
Something fishy is going on in the keyboard menu code as it seems!

werpu
Posts: 90
Joined: Sun May 24, 2020 7:37 pm
Has thanked: 12 times
Been thanked: 16 times

Re: Bluetooth Keyboard

Unread post by werpu »

Never mind, I filed a bugreport on the mister side and could solve the control problem via mister remote and the rest interface. I added a set of home assistant scripts with the correct curl commands and wired them into my remote (my remote has home assist support!)
Navigation via ip control works like a charm now, I can ditch bluetooth entirely!

Post Reply