Bluetooth Keyboard

Ask questions about DraStic or discuss compatibility issues here.
Post Reply
Arcamonde
Posts: 2
Joined: Sun Aug 10, 2014 1:23 am

Bluetooth Keyboard

Post by Arcamonde » Sun Aug 10, 2014 1:27 am

Hi there,

I am using a bluetooth keyboard as my external controller except I have come across an interesting issue. The only keys which seem to work with any reliability in the emulator are the arrow keys. The others do not perform their mapped function, but whatever I set on the arrow keys seems to work. I can sometimes get the other keys to perform a mapped action, but only if I hit it repeatedly, which it may then go off. Does anyone have an idea as to why this is happening?

Thanks,

-Arcamonde

Arcamonde
Posts: 2
Joined: Sun Aug 10, 2014 1:23 am

Re: Bluetooth Keyboard

Post by Arcamonde » Fri Aug 15, 2014 4:53 pm

Does no one have an idea as to why this is happening? Even speculation would be appreciated.

Thanks,

-Arcamonde

xperia64
Posts: 307
Joined: Fri Feb 28, 2014 7:41 pm

Re: Bluetooth Keyboard

Post by xperia64 » Fri Aug 15, 2014 6:58 pm

Not entirely sure either, but when I was working on a NDK app that used SDL a while back, I think only the arrow keys and the cut/copy/paste buttons worked (not entirely sure about the arrow keys, but the alphanumeric keys didn't work and the special cut/copy/paste buttons did).

Jay Haru
Posts: 1796
Joined: Sat Aug 10, 2013 1:10 pm
Location: Pasig, Philippines

Re: Bluetooth Keyboard

Post by Jay Haru » Sat Aug 16, 2014 2:09 am

xperia64 wrote:Not entirely sure either, but when I was working on a NDK app that used SDL a while back, I think only the arrow keys and the cut/copy/paste buttons worked (not entirely sure about the arrow keys, but the alphanumeric keys didn't work and the special cut/copy/paste buttons did).
Well, one reason is prolly the bt driver/stack... what os version are you using?
Behold my mighty
Image

xperia64
Posts: 307
Joined: Fri Feb 28, 2014 7:41 pm

Re: Bluetooth Keyboard

Post by xperia64 » Sat Aug 16, 2014 1:30 pm

Note that this wasn't drastic, but different app I was working on. It was 4.0.4. The keys worked in normal android stuff like the web browser, but they didn't even register in my NDK app besides the ones I mentioned.

Jay Haru
Posts: 1796
Joined: Sat Aug 10, 2013 1:10 pm
Location: Pasig, Philippines

Re: Bluetooth Keyboard

Post by Jay Haru » Sat Aug 16, 2014 4:17 pm

xperia64 wrote:Note that this wasn't drastic, but different app I was working on. It was 4.0.4. The keys worked in normal android stuff like the web browser, but they didn't even register in my NDK app besides the ones I mentioned.
I was actually asking the op but, you know... I tend to quote the guy above me...
Behold my mighty
Image

User avatar
beansta
Posts: 375
Joined: Wed Aug 07, 2013 9:39 pm

Re: Bluetooth Keyboard

Post by beansta » Mon Aug 18, 2014 8:37 pm

From android 4.2 google introduced new bluetooth stack drivers. unfortunately for devices built before 4.2 was released they would no longer work in Gamepad mode (due to huge lag issues with callbacks on the input).any of the other controllers WILL work in keyboard mode however DraStic doesnt like this mode at all and wont register inputs with this method. the only way to get around this (the way i did it) was to use USBBT joycenter, and fool drastic into thinking i had a controller in Gamepad mode when infact i had it in keyboard mode and had buttons remapped in the Joystick app. The app in question costs money too however.

this is currently the only workaround to getting 'keyboard' mode controllers to work on drastic on 4.2+
Devices running Android:

- Samsung Galaxy Note 4 (CM12.1, overclocked, undervolted)
- Asus Nexus 7 2013 (Stock Marshmallow...to play Pokemon GO on...)
- Tenfifteen QW09 SmartWatch (Kitkat)
- Fujitsu Lifebook T4410 Touchscreen Laptop (Remix OS 3.0)

Post Reply