Spyke

Posts

thumbkey·Thumb-KeybyToldry

Haptic question

I'm thinking of implementing a new feature for Thumb-Key: richer haptic feedback that will make it easier for users to blind-type.

While reviewing the current places where Thumb-Key already performs haptic feedback, I noticed something strange.

When doing a long-press gesture, there are two moments of haptic feedback. First is when the finger initially touches the keyboard key, and second when enough time has passed for the press gestured to be registered as a long press. The second haptic feedback is noticeably stronger than the first.

However, as far as I can tell, both events call the exact same function with the same parameter for both events:

view.performHapticFeedback(HapticFeedbackConstants.KEYBOARD_TAP)

So how come the second feedback is stronger than the first?


Here is the code for initial press.

And here is the code for the long press.

View original on lemmy.world
7
pbsod·Public Blue Screens Of DeathbyToldry

Madrid - Chamartín

hub 4-0:1.0: 2 ports detected

xhci_hcd 0000:05:00.4: hcc parans 0x0268ffe5 hci version 0x110 quirks 0x0000020000000010

xhci_hcd 0000:05:00.4: xHCI Host Controller

usb5: New USB device strings: Mfr=3, Product-2, SerialNunber=1

xhci-hcd

usb ush5: SerialNumber: 0000:05:00.4

hub 5-0:1.0: USB hub found

hub 5-0:1.0: 4 ports detected

usb usb6: We don't knou the algorithns for LPM for this host, disabling LPM.

usb usb6: New USB device strings: Mfr=3, Product=2, SerialMumber=1

hub 6-0:1.0: 2 ports detected

usb 3-3: new full-speed USB device number 2 using xhci hcd

tsc: Refined TSC clocksource calibration: 1796.624 MHz

: Mfr=0, Product=0, SerialNumber=0

idVendor

ports detected

er managenent may be unreliable

bcdDevice= 1.51

1.014479] hub 4-0:1.0: USB hub found

1.016408]

1.017641] xhci_hcd 0000:05:00.4: xHCI Host Controller

1.0184801 xhci_hcd 0000:05:00.4: new USB bus registered, assigned bus number 5

1.0192781

1.020067]

1.0207861 xhci_hcd 0000:05:00,4: new USB bus registered, assigned bus nunber 6

1.021187] xhci hcd 0000:05:00.4: Host supports USB 3.1 Enhanced SuperSpeed

1.021950] usb usb5: New USB device found, idVendor=146b, idProduct-0002, bcdDevice= 6.08

1.022348]

1.023119] usb usb5: Product: xHCI Host Controller

1.0238701

1.023520] usb usb5: Manufacturer: Linux 6.8.0-79-generic

1.0248491

1.0252701

1.027258]

1.028731]

1.027997] usb usb6: New USB device found, idVendor=1d6b, idProduct-0003, bcdDevice= 6.08

1.029145] usb usb6: Product: xHCI Host Controller

1.029903] usb usb6: Manufacturer: Linux 6.8.0-79-generic xhci-hcd

1.030296] usb usb6: SerialNumber: 0000:05:00.4

1.031228] hub 6-0:1.0: USB hub found

1.031637]

1.2503471

1.304326] usb 1-2: new high-speed USB device number 2 using xhci_hcd

1.3763341

1.5175501

1.516816] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialMumberno

1.5172031 usb 1-Z: Product: USB2.1 HT

1.516155] usb 1-2: New USB device found,

1,377263] clocksource: tsc: mask: Oxffffffffffffffff nax_cycles: 0x19e5b473752, nax_idle_ns: 4107952

1.377694] clocksource: Switched to clocksource tsc

1.408669] usb 3-3: New USB device found, idVendor=808 dor=0087, idProduct=0029, bcdDevice= 0.01

1.5252961

1.5272421

1.535788] usb: port power nanagene

1.620463]

1.655746]

1.656627]

1.6569751

1.657308]

1.6692841

1.672998]

30.948819]

0000

( 30.949923] pcie_mp2_and 0000:05:00.7: and_sfh_hid_client_init

Failed to uait for

daenon to reply: Connection tim out

usb 1-2: Manufacturer: Generic

hub 1-2:1.0: USB hub found

hub 1-2:1.0: 1 ports d

usb 2-2: new SuperSpeed USB device using xhci_hcd

usb 2–2: New USB device found, idVendor=Obda, idProduct=0411, be

usb 2-2: New USB device strings: Mfr=1, Product=2, Serialhunber=o

usb 2-2: Product: USB3.2 Hub

usb 2-2: Manufacturer: Generic

hub 2-2:1.0: 1.0: USI USB hub found

hub 2-2:1.0: 4 ports detected

pcie_mp2 ame 0.7: not enabled is

it failed err
View original on lemmy.world
54
thumbkey·Thumb-KeybyToldry

Thumb-Key not appearing on Android Studio emulated device

I'm using Android Studio on Windows 11, and trying to debug ThumbKey on an emulated device.

For some reason, the ThumbKey keyboard doesn't appear.

Looking at the logs in Logcat, there is one suspicious line:

2025-07-24 19:50:30.200  4769-4769  ImeBackDispatcher       com.dessalines.thumbkey.debug        E  Ime callback not found. Ignoring unregisterReceivedCallback. callbackId: 88733492

I'm new to Android dev, so I'm not sure how to debug this.

I tried fiddling with the keyboard settings of the emulated device, and some other proposed solutions I found on StackOverflow, but nothing I tried worked so far.

I am testing this on version 5.0.3 (commit acad975f51d7b399a567b2d1217a3209b6bbef96)

https://photos.app.goo.gl/iEN6U7f8pHWU8Jq67Open linkView original on lemmy.world
4