Connecting matrix keypad to m6410

Anna R. (Russia)
Hi! I've got a 4x4 matrix keypad connected to 8 GPIO pins.
How can I get pressed keys from C++ application in Linux?

Juergen Beisert
Enable CONFIG_KEYBOARD_MATRIX in your kernel and register its parameter in
the Mini6410 platform.
After that these pins are available via regular TTY (like every other
keyboard) or via event device node.

Alexei
How do show this matrix keyboard (keypad) in OS Linux? /dev/tty?
/dev/event0?

Juergen Beisert
Both

Alexei
How i can test matrix keypad GPIO withuot matrix keypad? cat /dev/event0
and see letter then connect pins e.g. row1 and col0?