pipresents-next
pipresents-next copied to clipboard
Key Events
I've been using the keys.cfg to make my presentation work with a logitech remote. I wanted to program in a special double click that would power down the raspberry pi. The key I need to map produces a period (decimal) keycode 190. When I attempt to add the key configuration of <Double-Key-.> or <Double-.> it will fail to launch. This syntax works with other keyboard keys without issue. For example, I'm able to advance slides with the "a" key by modifying the keys.cfg with <Double-Key-a> or even <Double-a> without issue. I'm also able to just use the period by itself to trigger events without issue. As soon as I add some type of modifier it fails.
Thanks
I suspect the problem is that 190 is outside the range of normal ASCII printing characters. The . might be just 'I don't knoow how to proint it so . is a filler
190 is obtained by CTRL > Using the CTRL_> special key might work
My other thought was that you are not double clicking fast enough and are producing a .
Presumably you are using the key to invoke a show which has the shutdown show control command. Using the gpio based shutdown system won't work as it need to be held for 5 seconds.
double-key does not appear in any documentation I have seen, but I gather from your exxperiments that it does work.
The period seems to work fine when I code it directly. For instance, . = pp-up works great and works from my remote. I've also confirmed that the remote is sending a code 190.
Double key works and so does triple. The manual directs you to this website for more info. There are lots of events you can listen for that will work.
The issue that I'm seeing is causing the Presentation not to load and an error is thrown when I use <Double-.> or <Double-Key-.>.
I will try the CTRL-> to see if that works and I'll report back.
Control_> also caused the pipresent to fail.