Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f438935 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by Dmitry Torokhov
Browse files

Input: convert keyboard notifier docs into ReST format



This file require minimum adjustments to be a valid ReST file.
Do it, in order to be able to parse it with Sphinx.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent eba31a3a
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
=================
Keyboard notifier
=================

One can use register_keyboard_notifier to get called back on keyboard
events (see kbd_keycode() function for details).  The passed structure is
@@ -23,7 +25,7 @@ For each kind of event but the last, the callback may return NOTIFY_STOP in
order to "eat" the event: the notify loop is stopped and the keyboard event is
dropped.

In a rough C snippet, we have:
In a rough C snippet, we have::

    kbd_keycode(keycode) {
	...
@@ -49,4 +51,4 @@ kbd_keycode(keycode) {
	notifier_call_chain(KBD_POST_KEYSYM,&params);
    }

NOTE: This notifier is usually called from interrupt context.
.. note:: This notifier is usually called from interrupt context.