flutter-pi icon indicating copy to clipboard operation
flutter-pi copied to clipboard

grab all input devices

Open ardera opened this issue 3 years ago • 6 comments

use EVIOCGRAB to grab all input devices for exclusive use. otherwise, if people have a keyboard attached and a console running, the keyboard can be used to enter things on the console.

See discussion in #256

ardera avatar Oct 26 '22 15:10 ardera

And how do I use it?

Since the latest Binary update to Flutter 3.3.7 the keyboard input doesn't work anymore in my Flutter App. It only appears in the console.

niklasbartsch avatar Nov 17 '22 10:11 niklasbartsch

@niklasbartsch Should work OOB. If it doesn't, could be libinput exposes your keyboard as both a key and pointer device, and at least in the master branch, that case isn't handled correctly yet.

Though it's handled correctly on the feature/compositor-ng branch, can you try there and lmk if it works?

ardera avatar Nov 19 '22 13:11 ardera

Still doesn't work, event with the feature/compositor-ng Branch

niklasbartsch avatar Nov 20 '22 12:11 niklasbartsch

@niklasbartsch That's a bug then, can you run libinput debug-events, press some keys, and send me the complete output? And what does your flutter-pi output look like?

Also please open a new issue for that (and post the logs there)

ardera avatar Nov 20 '22 14:11 ardera

I opened the Issue #304. How do I use libinput debug-events?

niklasbartsch avatar Nov 21 '22 14:11 niklasbartsch