There's more...

LIRC supports several helper programs, of which irxevent is just one:

remote

By default, LIRC supports some simple controls; for example:

  prog=remote

  button=KEY_UP

  config=UP

This will provide simple cursor control from a remote (UP, DOWN, LEFT, RIGHT, and also ENTER) that are perfect for simple menu control.

http://www.lirc.org/html/configure.html#lircrc_format

irxevent

Emulates button clicks and key presses within X applications. You can specify that the key event occurs in the CurrentWindow or in a specific window by name, that is, leafpad. This only works if you are running from the graphical desktop environment (or using X forwarding).

http://www.lirc.org/html/irxevent.html

irpty

Converts ...

Get Raspberry Pi 3 Cookbook for Python Programmers - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.