https://bugs.kde.org/show_bug.cgi?id=240726
James Hogan <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #2 from James Hogan <[email protected]> --- I have a slightly different use case for this. I have a set of bluetooth headphones (Plantronics backbeat pro) which has a sensor on the left side so it knows when you take it off your ear. When that happens it sends XF86AudioPause: KeyRelease event, serial 41, synthetic NO, window 0x9a00001, root 0xd3, subw 0x9a00002, time 67076582, (62,54), root:(1800,898), state 0x0, keycode 209 (keysym 0x1008ff31, XF86AudioPause), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False and when you put it back on your ear it sends XF86AudioPlay: KeyRelease event, serial 41, synthetic NO, window 0x9a00001, root 0xd3, subw 0x9a00002, time 67077375, (62,54), root:(1800,898), state 0x0, keycode 208 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES, XKeysymToKeycode returns keycode: 172 XLookupString gives 0 bytes: XFilterEvent returns: False It also has a play/pause button on that side, which again alternates sending separate XF86AudioPlay / XF86AudioPause. This works great on an android phone. if somebody wants your attention you just take it off your head and it pauses and then plays immediately when putting it back on. Trying to get that to work with amarok is a right pain, especially in combination with the Play/Pause button I have on my keyboard. I had a script which attempted it, but had issues with xmodmap and its since stopped working. At the moment I have Play mapped to Play/Pause, and have to press the button twice after putting it back on my head as it doesn't pause when taking it off, and pauses when i put it back on, then the button sends another pause followed by play on second press which amarok finally interprets as play. Frustrating. It'd be far better to have separate Play, Pause and PlayPause events which you can bind different keys to. -- You are receiving this mail because: You are watching all bug changes.
