Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Events #43

Open
DanITman opened this issue Apr 18, 2017 · 3 comments
Open

Key Events #43

DanITman opened this issue Apr 18, 2017 · 3 comments

Comments

@DanITman
Copy link

DanITman commented Apr 18, 2017

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 or even 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

@KenT2
Copy link
Owner

KenT2 commented Apr 19, 2017

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.

@DanITman
Copy link
Author

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.

@DanITman
Copy link
Author

Control_> also caused the pipresent to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants