Skip to content
Advertisement

What does the z component of ncurses mouse events represent?

From ncurses.h

JavaScript

What does the z coordinate represent?

Advertisement

Answer

From the curs_mouse man page:

The z member in the event structure is not presently used. It is intended for use with touch screens (which may be pressure- sensitive) or with 3D-mice/trackballs/power gloves.

Also, if you search lib_mouse.c in the ncurses source code for ->z and .z, you will find that it is only ever set to zero.

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement