kernc / logkeys

:memo: :keyboard: A GNU/Linux keylogger that works!
Other
758 stars 253 forks source link

Updated determine_device_input() strategy #225

Closed Alerik closed 3 years ago

Alerik commented 3 years ago

determine_device_input() now matches devices that have a key bitmask ending with 'e'. Ranks devices based on key bitmask size and if name contains 'keyboard'. Returns highest scored device.

This should help with device resolution greatly. Looks like it resolves #222, resolves #215, resolves #212, resolves #192, resolves #160, resolves #159, resolves #154. resolves https://github.com/kernc/logkeys/issues/224

kernc commented 3 years ago

As far as I've managed to check, this newfound heuristic "keyboard" + number of keys works really well for most of the affected issues. Many thanks @Alerik!