Keyboard input
Closed this issue · 6 comments
it seems like the keyboard is accepting input only from stylus and not touch. Anyway to fix it?
Sorry it is my first time reporting a bug I may have done it badly.
I assume this is about yaft.
Can you share which device and firmware version you're using?
I know the inputs paths changed, but I use uinput so most stuff should keep working.
I am running 2.10.2.356 rm1
Yes it is abouy yaft.
@timower newer versions of the rM OS change input paths. You'll likely want to dynamically listen to input events for both pen and touch enabled devices to survive OS upgrades better.
Oxide's apps use the following to determine pen/touch/button inputs: https://github.com/Eeems/oxide/blob/master/shared/devicesettings.cpp#L18-L64
Yeah, I use udev to discover devices, that's how keyboard input works.
But to get the correct scaling and rotation of the events I still have some hard coded paths:
rM2-stuff/libs/rMlib/Device.cpp
Lines 18 to 49 in 8dc94a3
@Eeems Is there a generic way to get the scaling and rotation from an input device?
I currently hardcode it per device. There might be a way but I haven't had the need to determine it dynamically yet.